Windows 8 and 8.1 Forums

Robocopy and same directory

  1. #1

    Robocopy and same directory


    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?



      My System SpecsSystem Spec

  2. #2

    Posts : 1,875
    Windows 10 Pro Prieview x64

    You can't. Use copy or xcopy if you want to rename.
    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
    copy /v c:\test\old.txt c:\test\new.txt
    where the /v verifies the copy.
      My System SpecsSystem Spec

Robocopy and same directory

Similar Threads
Thread Forum
Cannot get Xcopy or Robocopy to copy folder
"C:\Users\username\AppData\Roaming\App Launcher Gadget" F:\Backup\Common\App_Launcher\AppLauncherSettings /i I want to copy "App Launcher Gadget" folder to "AppLauncherSettings" folder. I have tried several ways and only get the files copied or invalid directory.
General Support
Robocopy and attributes problem
Hi Using Robocopy, I should copy the files of a directories structure with all their ACL and their attributes except the attributes of reading in another structure. How should I do this? Thanks Bye
General Support
disk directory seen as a shortcut
hey, I have a certain proble. I inserted my USB drive into someone's Pc, and immediately after, it was seen as shown here. 41647. when I inserted it back to my computer, it was the same thing, how do I solve this. thanks.
General Support
Robocopy /MIR
Does Robocopy /MIR copy all files or just the ones that are added and those that are changed? I don't want to start this if it is going to take hours and hours. thanks...
Performance & Maintenance
$Windows.~ directory
Has anyone determined for sure what it is for. It is left after 8.1 installs. Early some thought you could move it to other computers to avoid the 3.2gig download but it only has 3-400 meg. It took me8 hours to download/install. Not going to do that for four more units.
General Support
Robocopy. Can someone help please!
Basically I would like to copy from my Skydrive to copy to my NAS once a day everyday. I know some of the basics but need help with specifics like copy to folder and making sure the newest file exists as the saved copy. Here we go! Robocopy C:\Users\Clive\SkyDrive\Documents B:\ / Thanks...

Eight Forums Android App Eight Forums IOS App Follow us on Facebook