• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Robocopy and same directory


balubeto

Member
Member
Posts
173
#1
Hi

With the Robocopy command of Windows 8.x, how do I do a copy of a file (renaming it) in the same directory of the source file?

Thanks

Bye
 

My Computer

System One

  • OS
    Windows 8
Posts
1,870
#2
You can't. Use copy or xcopy if you want to rename.
e.g.
Code:
xcopy c:\test\old.txt c:\test\new.txt
Note xcopy will always prompt you with "Does c:\test\new.txt specify a file name or a directory name on the target" so you would probably be better off with
Code:
copy /v c:\test\old.txt c:\test\new.txt
where the /v verifies the copy.
 

My Computer

System One

  • OS
    Windows 10 Pro Prieview x64
    Computer type
    Laptop
    System Manufacturer/Model Number
    MacBook Pro Core2Duo
    CPU
    T7600
    Memory
    3
    Graphics Card(s)
    ATI Radeon X1600
    Monitor(s) Displays
    Internal
    Screen Resolution
    1440 x 800
    Hard Drives
    40GB
    Keyboard
    Apple
    Mouse
    Apple
    Internet Speed
    Varies
    Browser
    Various
    Antivirus
    Defender