Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 17,111 of 17,273    |
|    JJ to R.Wieser    |
|    Re: Problem : BrowseForFolder returns "T    |
|    17 Dec 25 09:15:18    |
   
   XPost: alt.comp.lang.vbscript, alt.windows7.general   
   From: jj4public@gmail.com   
      
   On Tue, 16 Dec 2025 11:26:17 +0100, R.Wieser wrote:   
   > Hello all,   
   >   
   > XPsp3   
   >   
   > I have the need to select a file, and found "BrowseFolFolder" should be able   
   > to do it.   
   >   
   > The problem is that no matter the path or the file selected, all I get is a   
   > "The system cannot find the file specified" error.   
   >   
   > The stripped-down example :   
   >   
   > - - - - - - - - - - - - - -   
   > Set shell = CreateObject("Shell.Application")   
   > call shell.BrowseForFolder(0, "Choose a file:", &H4000, "c:\")   
   > - - - - - - - - - - - - - -   
   >   
   > I do not see what might be going wrong here. Help ?   
      
   Are you sure the error occurs within that two lines?   
   Did the dialog manage to be shown in the first place?   
   Did it occur during the file selection while the dialog is shown?   
   Did it occur after pressing the OK button?   
   Did BrowseForFolder manage to return at all?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca