Prev: VBS to remove Excel addin completely
Next: registry key gets undeleted after computer taken out of hibernation
From: Bill on 8 May 2010 15:45 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 8 May 2010 16:19 "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 8 May 2010 16:24
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 ~ |