Hi Bruce,
you can look at either wScript.shell or shell.application, depending on what
you need.
If you need to run an executable command, and you'd like that command to not
fail in Vista/win 7, but to use the UAC prompt if necessary, have a look at
the lines below which I use in one of my apps to do this:
Set loShell = CreateObject("Shell.Application")
Speak "Now running the WSRMacros installation program."
loShell.ShellExecute fileName, "/passive", "", "runas"
It's the "runas" parameter which allows UAC to prompt the user.
hth,
Chip
-----Original Message-----
From: BT [mailto:[email protected]]
Sent: Tuesday, June 21, 2011 9:23 PM
To: [email protected]
Subject: Shell In Script
Hi!
One question, what is used to do a shell command in script?
bruce