Windows Vista Forums

VB script using XCOPY

  1. #1


    Bill Guest

    VB script using XCOPY

    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





      My System SpecsSystem Spec

  2. #2


    Pegasus [MVP] Guest

    Re: VB script using XCOPY



    "Bill" <someplace@newsgroup> wrote in message
    news:eLfYVcu7KHA.720@newsgroup

    > 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.


      My System SpecsSystem Spec

VB script using XCOPY

Similar Threads
Thread Thread Starter Forum Replies Last Post
xcopy ftp James VB Script 5 05 Feb 2009
robocopy or xcopy ? Vistje Vista General 0 10 Sep 2008
XCOPY fails in Vista Ashpoint Vista General 12 23 Aug 2007
Xcopy Continue (/C) switch Vista General 8 09 Aug 2006
xcopy batch martin PowerShell 7 31 May 2006