Re: Launch "printers and faxes"
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Tue, 5 Apr 2005 20:52:39 -0700
Ian Matthews wrote:
> Hi TDM;
>
> When I execute this from the command line, it works just fine but from
> within a .VBS file I am getting:
>
> without quotes I get error "Expected end of statement"
> with quotes (which I think is wrong), I get error "Expected statement"
>
> How can I run this from within a VBScript?
set shell = createobject("wscript.shell")
shell.run "rundll32.exe SHELL32.DLL, SHHelpShortcuts_RunDLL PrintersFolder"
(watch out for wrapping in posting -
the above shell.run "blahblah" is all on one line.)
--
Michael Harris
Microsoft MVP Scripting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please ask follow-up questions via the original newsgroup thread.
.
- Follow-Ups:
- Re: Launch "printers and faxes"
- From: TDM
- Re: Launch "printers and faxes"
- From: Ian Matthews
- Re: Launch "printers and faxes"
- References:
- Launch "printers and faxes"
- From: Ian Matthews
- Re: Launch "printers and faxes"
- From: TDM
- Re: Launch "printers and faxes"
- From: Ian Matthews
- Launch "printers and faxes"
- Prev by Date: Re: ADO multiple field recordset search
- Next by Date: Scriptomatic
- Previous by thread: Re: Launch "printers and faxes"
- Next by thread: Re: Launch "printers and faxes"
- Index(es):
Relevant Pages
|