Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Batch File - Backup files&folders to a different location

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,566
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 12, 2010

How to make a batch file that copies folders/files to a location you choose. Uses the xcopy function.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (shanetalbert)

  • Nice guide but lets say I want a batch file that copies a few word 2003 templates from the network drive to the normal microsoft templates directory, I tried this :

    xcopy Q:\Cegelec_Templates\*.* C:\Documents and Settings\%username%\Applicatio­n Data\Microsoft\Templates\*.* /s /e --------- But then I get an error saying invalid number of parameters, but when I use C:\Users as the destination folder it does work, any tips? thx

  • @Dartmoul1 I can think of 2 possible problems. There might be an issue using %username&, try putting your actual username if you can (just to test to see if thats the problem). The other thing I can thinkof which is probably the problem is the space in Application Data. I'll try to find a solution for that. I'll let you know when I find a fix.

  • @Dartmoul1 Ok, I think I found a solution. Try this:

    xcopy "Q:\Cegelec_Templates\*.*" "C:\Documents and Settings\%username%\Applicatio­­n Data\Microsoft\Templates\*.*" /s /e

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • Thank you

  • thankz :)

  • Great tutorial :) you helped me with my university coursework!! THANK YOU!?

  • Thanks dude..Your is really really helpful..once again thanks a lot for posting it.

  • hi your video was really helpful.

    do you know how i can do some thing like xcopy "file1\file2" "file1\file4" instead of having to put the exact location like xcopy "c:\users\%username%\Desktop\f­ile0... for example. sorry if i didn't enplane it to well.

    thnx

  • Great for games that only allow one user saves :D

  • -----Getting Invalid number of parameters error----

    This error occurs when you're typing a directory in the MS-DOS or the Windows command line that has spaces in it. For example using the xcopy command to copy files in the Documents and Settings folder. When typing a directory with spaces in MS-DOS make sure to surround the path with quotes. For example, instead of typing: c:\documents and settings type "c:\documents and settings".

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more