|
|
|||||||
I can select files, but would like to return a folder path even if the folder is empty. Is this possible? |
||||||||
|
|
|||||||
If you just want to browse for folder, use this... code:$objShell = CreateObject("Shell.Application") |
||||||||
|
|
|||||||
Wonderful, Sir, thank you. Whilst we're on a winning streak, can I also ask if it can be seeded by a currently selected folder (say from an ini file)? Also, where would be a good place to get some idea of other objects I can use? I usually program in a 4GL business language so I'm not familiar with Windows programing. |
||||||||
|
|
|||||||
In general, the MSDN documentation will contain everything regarding scriptable object. It also contains a plethora of examples. |
||||||||
|
|
|||||||
The short answer is, yes. code:Doing this, however, makes this item the top level in your browser tree. I.E. They can browse below, but not above your default directory. Could be a good thing, depending on how you want to use it.$objFolder = $objShell.BrowseForFolder(0, "Select a folder:", 0, "c:\archive") |
||||||||
|
|
|||||||
This is returning nothing for me on XP... code:Status() is a function for dumping the info to a kixform listbox (yes the function works...)$objShell = CreateObject("Shell.Application") Any help? [ 09. January 2003, 00:48: Message edited by: Radimus ] |
||||||||
|
|
|||||||
ahhhh... it will return infor for folders but not files.. dammit^2 |
||||||||
|
|
|||||||
Rad - FileOpenDialog() could be thought of as like a BrowseForFile() function ? $FileName = $Form.FileOpenDialog("Open", ".\", "", "", 0) [edit] crap but then you would have to parse-out the returned string i guess. -Shawn [ 09. January 2003, 02:43: Message edited by: Shawn ] |
||||||||
|
|
|||||||
that is what I had to do anyway... This works perfectly... Thanks Bud |
||||||||
|
|
|||||||
BTW... what are the parameters for $Form.FileOpenDialog("Open", ".\", "", "", 0) |
||||||||
|
|
|||||||
Good news - this is from KIXLIST.DOC available from Kixforms.org: quote:Never didn't finish the flags parm but just set it to zero. Chris S. was kind enough to document a much better version of above but it hasn't been published yet. -Shawn [ 09. January 2003, 04:13: Message edited by: Shawn ] |
||||||||
|
|
|||||||
Rad, you have mail. |
||||||||
|
|
|||||||
thank you sir. This was Exactly what I needed. $FileName = $Form.FileOpenDialog("Find engine.exe Update", ".\", "", "SuperDat|*eng.exe", 0) |