Windows 8 and 8.1 Forums


Robocopy and same directory

  1. #1

    Robocopy and same directory


    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 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.
    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 System SpecsSystem Spec

Robocopy and same directory
Related Threads
"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.
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
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.
Robocopy /MIR in Performance & Maintenance
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...
$Windows.~ directory in General Support
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.
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