Re: BrowseForFolder

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 17:32:13 +0200

TomThumbKOP wrote:

> I am attempting to use BrowseForFolder to select a file (&H4000). It
> works fine for files everywhere except for the root of c:\. For these
> files, it throws an Invalid Procedure or Function Call Error. It is
> driving me nuts. There is nothing that I can see in the permissions,
> etc. that would cause this. It is on a W2K machine with WSH v5.6. Any
> Ideas?
Hi

From: Günter Born (No_Spam_GBorn@Web.de)
Subject: Re: WSHShell.BrowseForFolder() failure
Newsgroups: microsoft.public.scripting.wsh
Date: 2001-12-04 23:57:58 PST

<quote>
It's my experience that BrowseForFolder fails in Win XP (for most files)
and partly in W 2000 (for all files located in the root directory), if
BIF_browseincludefiles = &H4000 is used. According to Microsoft's docs,
the use of BIF_browseincludefiles = &H4000 isn't recomended.

G. Born
</quote>

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx


Relevant Pages

  • Re: Ruby GC question (MRI, JRuby, etc)
    ... that they all search for objects from a "root" memory object. ... They are designed for scripting, ... That's why YARV and especially MRI are so exceptionally bad for server ...
    (comp.lang.ruby)
  • Re: Writing scripts in Linux
    ... Learn to write scripts as root, ... Okay, I'm a bit new to shell scripting but learning. ...
    (alt.os.linux.redhat)
  • Re: login differences
    ... * logging in, then running "su" shows who became root. ... do mail and scripting, and esp. ... window where you're root. ...
    (comp.unix.solaris)
  • Re: Crit. Up. KB828026 Wont Quit. HELP
    ... root wrote: ... > Player Script Commands". ... I check WinUp again and it wants to do that same ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windowsupdate)
  • Re: Start new process by root
    ... > Is there anyway (scripting) that root can start a process that will be ... #bofh excuse 47: Complete Transient Lockout ...
    (comp.unix.shell)