Mike Gagnon
Programmer
For those of you using windows XP (and Windows Scripting 5.6), here is a nice and useful FileOpen dialog that exposes the usrmgr.cpl from the Control Panel.
Code:
oDlg= Createobject("userAccounts.commonDialog")
oDlg.flags= "&h1a04"
oDlg.Filter= "All Files|*.*|"+ "Text and Batch Files|*.txt;*.bat"
oDlg.filterIndex= 2
oDlg.initialDir="C:\"
qSln= oDlg.showOpen
If qSln
Messagebox(oDlg.fileName)
Else
Messagebox("Dialog cancelled.")
Endif
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.