Just been reading through the questions that other people have been asking about batch files, and can't find anything useful.
I am wanting to backup all of my c# code, using a batch file. Please help me to find out what I am doing wrong?
This is what I am asking my batch file to run:
copy C:\Visual Studio Express\Test Programs\Program 1\ c:\Backup Code\
Everytime I find some code on google, it shows something like this:
copy C:\Fred\*.exe g:
Now that is useless to me, as I tried that, and that code has got no spaces in, like mine does.
If you can help me out, that would be greatly appreciated. Thanks!
Try:
copy "C:\Visual Studio Express\Test Programs\Program 1\" "c:\Backup Code\"
That said, you can run a source control repository locally, take a look at this tutorial for some information on how to setup a "local" SVN source control repository. This can function as a backup and has the added advantage of giving you a history of backups.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With