XCopy

Discussion in 'Windows 7' started by NICK@NUMBER11, Oct 18, 2010.

  1. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    631
    60
    Hi, can anyone help me out
    I am trying to get xcopy to run from dvd i have my small batch file sitting in a directory called "hotfixes"

    xcopy "*.*" c:\Windows\Hotfixes

    But it says cannot find file, but sit looking in c:\windows\system32 folder not the dvd folder?
     
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,065
    270
    Don't forget we have a new thread for getting help with .bat files/scripting

    http://forums.mydigitallife.net/thr...pository-A-place-to-learn-and-teach-scripting
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Calistoga

    Calistoga MDL Senior Member

    Jul 25, 2009
    420
    198
    10
    #3 Calistoga, Oct 18, 2010
    Last edited by a moderator: Apr 20, 2017
    Does it work if you use this instead?
    Code:
    xcopy "*" "c:\Windows\Hotfixes\*"
    Note that I haven't tested it.
     
  4. Alphawaves

    Alphawaves Super Moderator/Developer
    Staff Member

    Aug 11, 2008
    5,864
    20,048
    180
    xcopy %~dp0"*.*" "c:\Windows\Hotfixes"

    Alfa:);)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    631
    60
    #5 NICK@NUMBER11, Oct 19, 2010
    Last edited: Oct 19, 2010
    (OP)
    Many thanks, now get "access denied" just addedd /u /r to the command and its sorted

    Thanks