From: Bill on
Hello

I'm writing a script that copies files from one folder to another, and I'm
using XCOPY.
wshshell.run "cmd /c XCOPY " & .....


but how do I get the DOS shell window to open when I run this command ??

THanks


From: Pegasus [MVP] on


"Bill" <someplace(a)somewhere.com> wrote in message
news:eLfYVcu7KHA.720(a)TK2MSFTNGP05.phx.gbl...
> Hello
>
> I'm writing a script that copies files from one folder to another, and I'm
> using XCOPY.
> wshshell.run "cmd /c XCOPY " & .....
>
>
> but how do I get the DOS shell window to open when I run this command ??
>
> THanks
>

Like so: wshshell.run "cmd /c XCOPY . . . " & pause

The question is, of course, why you would want to invoke xcopy from within a
script file. It would be much simpler to invoke it from a batch file.

From: "Dave "Crash" Dummy" on
Bill wrote:
> Hello
>
> I'm writing a script that copies files from one folder to another, and I'm
> using XCOPY.
> wshshell.run "cmd /c XCOPY " & .....
>
>
> but how do I get the DOS shell window to open when I run this command ??

Change the /c switch to /k: wshShell.run "cmd /k XCOPY "

--
Crash

"The fewer the facts, the stronger the opinion."
~ Arnold H. Glasow ~