Re: File Open Dialog box in Vista
- From: "Pete Gomersall" <Pete.Gomersall@xxxxxxx>
- Date: Mon, 25 Sep 2006 08:57:06 -0700
Thanks for comments but I get the same error as I did using "UserAccounts.CommonDialog from XP":
ActiveX component can't create object - SAFRCFileDlg.FileSave - Code: 800A01AD
Maybe someone from MSFT may know what the correct object call for File Open/Save dialogs in Windows Vista is from VBScript?
Many thanks though,
"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message news:%23%23vgJkq3GHA.5000@xxxxxxxxxxxxxxxxxxxxxxx
Pete Gomersall wrote:Hi all,
I have been using the UserAccounts.CommonDialog from XP with my
VBScripts, however this doesn't seem to work in Vista.
Does anyone know if there is a similar ActiveX object to call in
Vista or Vista specific way to call the Common File Open dialog from
Scripting Week 3 Question and Answer Log
What is the best alternative to 'UserAccounts.CommonDialog' for an HTA running on Windows 2003 server?
I assume you're looking for the File Open/File Save dialog boxes; you can use the SAFRCFileDlg object. You can find an example of using the File Save dialog box here: http://www.microsoft.com/technet/scriptcenter/webcasts/sweek3/you-found-it.mspx.
...which points you to...
The Scripting Week 3 Giveaway
Maybe SAFRCFileDlg will work on Vista?
Microsoft MVP Scripting