Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Help with command line xcopy
02-04-2013, 04:30 AM #1
- Join Date
- Feb 2013
- Thanked 0 Times in 0 Posts
Help with command line xcopy
Being new to the forum but not finding an intro thread I'm gonna start there My name is Russell, I am an animator by trade but a programmer by hobby. I spend my free time learning/writing android apps and games using eclipse and Unity. I currently have one on the market. I'm all self taught using my own brain, lots of internet tutorials, and a few forums. I come here today in need of some help with command line work.
I've started working on a second machine at home and I have a backup machine just for storage. I wrote a small .bat file to copy everything to/from the backup so I can easily go from one machine to the other. Everything is going great but I work from a master folder called "Workspace" and that folder has all my project folders and their iterations. Currently the extent of my command line knowledge is just using xcopy to send or retrieve the entire "Workspace" folder around, that gets large. What I'm hoping is to edit the .bat file so I can select Yes/No for each folder within the "Workspace" directory only copy the ones I select Yes. That way I can copy only the folders I want and not every project.
The bat file I wrote is pretty basic but it does the trick for copying the whole directory
@echo off xcopy "localdirectory" "networkshare" /e /q /r /y /EXCLUDE:c:\share\Exclusion.txt