XCopy

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

  1. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,503
    720
    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. Calistoga

    Calistoga MDL Senior Member

    Jul 25, 2009
    421
    199
    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.
     
  3. Alphawaves

    Alphawaves Super Moderator/Developer
    Staff Member

    Aug 11, 2008
    6,222
    22,280
    210
    xcopy %~dp0"*.*" "c:\Windows\Hotfixes"

    Alfa:);)
     
  4. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,503
    720
    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