Groups | Search | Server Info | Login | Register
Groups > alt.comp.lang.vbscript > #49
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Newsgroups | alt.comp.lang.vbscript, alt.comp.os.windows-xp, alt.windows7.general |
| Subject | Re: Problem : BrowseForFolder returns "The system cannot find the file specified" |
| Date | 2025-12-16 14:26 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <10hrmma$2otb8$1@dont-email.me> (permalink) |
| References | <10hrc4h$2iqoi$1@dont-email.me> <10hrknj$2oavc$1@dont-email.me> |
Cross-posted to 3 groups.
Paul,
> When presented with your code, CoPilot sez:
>
> This code selects a folder.
>
> Set shell = CreateObject("Shell.Application")
> Set folder = shell.BrowseForFolder(0, "Choose a folder:", &H4000, "c:\")
Than its hallucinating. The &H4000 means "The browse dialog box displays
files as well as folders.". Which it does.
> This code selects a file. We'll see in a moment, what the Copilot is up
> to.
>
> Set dialog = CreateObject("UserAccounts.CommonDialog")
> dialog.Filter = "All Files|*.*"
> dialog.FilterIndex = 1
> dialog.InitialDir = "C:\"
> dialog.ShowOpen
Damn. Before posting I googed for a VBScript file-selection copability, and
did not see that one come by. :-\
But, I just tested if it would work for me, and it does. So, thank you. :-)
I have to say, I didn't even know about the existance of that "UserAccounts"
object. Something to look into (new stuff and all that).
Regards,
Rudy Wieser
Back to alt.comp.lang.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
Problem : BrowseForFolder returns "The system cannot find the file specified" "R.Wieser" <address@is.invalid> - 2025-12-16 11:26 +0100
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" Paul <nospam@needed.invalid> - 2025-12-16 07:53 -0500
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" "R.Wieser" <address@is.invalid> - 2025-12-16 14:26 +0100
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" "David E. Ross" <nobody@nowhere.invalid> - 2025-12-16 08:54 -0800
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" Paul <nospam@needed.invalid> - 2025-12-16 12:05 -0500
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" "R.Wieser" <address@is.invalid> - 2025-12-16 19:58 +0100
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" JJ <jj4public@gmail.com> - 2025-12-17 09:15 +0700
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" "R.Wieser" <address@is.invalid> - 2025-12-17 07:17 +0100
Re: Problem : BrowseForFolder returns "The system cannot find the file specified" "R.Wieser" <address@is.invalid> - 2025-12-17 09:04 +0100
csiph-web