CreateObject("UserAccounts.CommonDialog") is working fine on XP, but on
Windows Server, it doesn't.

Have another way of calling browse a file on that platform?

Thanks,
-Andrew

RE: UserAccounts.CommonDialog on Windows 2000 by AndrewHUANG

AndrewHUANG
Wed Dec 05 11:05:00 PST 2007

CreateObject("SAFRCFileDlg.FileSave") doesn't work too.


"Andrew HUANG" wrote:

> CreateObject("UserAccounts.CommonDialog") is working fine on XP, but on
> Windows Server, it doesn't.
>
> Have another way of calling browse a file on that platform?
>
> Thanks,
> -Andrew
>
>

Re: UserAccounts.CommonDialog on Windows 2000 by Paul

Paul
Wed Dec 05 13:55:23 PST 2007


"Andrew HUANG" <AndrewHUANG@discussions.microsoft.com> wrote in
message news:2139F801-CE64-4E77-9CAD-4F6463D6FB1A@microsoft.com...
> CreateObject("UserAccounts.CommonDialog") is working fine on XP, but
> on
> Windows Server, it doesn't.
>
> Have another way of calling browse a file on that platform?
>
> Thanks,
> -Andrew

Hi, Andrew
I suspect that what you really want is scripting access to the
'standard' file open and save as dialog box. You probably have many
programs that use it, but you can't script it because you don't have a
license for scripting it. You don't
automatically get a scriping license for it with Windows. But M$ has
a free download that will, when you run the .hta, install the free
license which you can then use for any scripting.

1) The .hta is a simple html editor that does 'save as' from a menu
and toolbar button, completely built with VBScript.
2) It installs the license.

Learn about this simple HTML editor at:
http://msdn2.microsoft.com/en-us/library/ms537834.aspx


Download it at:

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/author/html/htmleditor/default.asp


-Paul Randall