Ready, steady… save!
You don’t need a chart to join in. Here are 2 ways to record your savings:
1. Cross it off
Pop a chart into your first post. Saved an amount? Cross it out! Read more »
£0.01 £0.02 £0.03
2. Write it down
Skip the chart and add updates to your first post. Read more »
“Another +£3 saved today. Go me!”
Use +£ before each new saving so it counts towards your total.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Writing a Batch File?
Am I correct in thinking that you can write a batch file to copy all my docs from my docs to an external hard drive with just a click of a shortcut on my desktop? I am running windows 7.
If so, how do I go about doing this...and It would be great if the command would request to overwrite and previous filess with the same name.
Many many thanks for your help.
Money Saver
Comments
-
You just need to use xcopy, something like the following:
xcopy c:\documents and settings\username e:\backup /s/e/v/c/i/y
Just stick this line into a text file and call it backup.bat or similar.
I think on some versions of windows, Microsoft has now replaced xcopy with robocopy, so if xcopy doesn't work, try using robocopy instead. The flags at the end do the following;
/s = copy subdirectories
/e = copy empty subdirectories
/v = verify copied files
/c = continue on error
/i = assume destination is a directory
/y = suppress prompting for overwriting existing file0 -
It can be done with a batch file if you have some sort of understanding of good old DOS. You'd have to be pre-windows days for that.;)
Basically you would use the xcopy command, something like:
xcopy source destination /S/Y
The /S switch tells it to include subdirectories and /Y tells it not to ask if overwriting existing files on the destination.
Your source and destination would be the main parent directory you are copying from or to.
You'd put that command into a text file with a .bat extension on your local drive and then create a shortcut to it on your desktop.
In all probability you'd want to be a lot more sophisticated than just that command alone offers, but it would be a start.I’m a Forum Ambassador and I support the Forum Team on the In My Home MoneySaving, Energy and Techie Stuff boards. If you need any help on these boards, do let me know. Please note that Ambassadors are not moderators. Any posts you spot in breach of the Forum Rules should be reported via the report button, or by emailing forumteam@moneysavingexpert.com.
All views are my own and not the official line of MoneySavingExpert.
0 -
I have an external drive and I just drag whatever from the C: hardrive over to the external.0
-
Change the name, it gives you that option.0
-
-
Or you could use Microsoft Sync Toy .4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed 5.07 + Octopus Intelligent Flux leccy
CEC Email energyclub@moneysavingexpert.com0 -
You could make a folder on the external drive with the date then drag all that days files over to it, then the next time do another folder this may also make it easier to find a file plus you know when you did it for future reference.0
-
You just need to use xcopy, something like the following:
xcopy c:\documents and settings\username e:\backup /s/e/v/c/i/y
Just stick this line into a text file and call it backup.bat or similar.
I think on some versions of windows, Microsoft has now replaced xcopy with robocopy, so if xcopy doesn't work, try using robocopy instead. The flags at the end do the following;
/s = copy subdirectories
/e = copy empty subdirectories
/v = verify copied files
/c = continue on error
/i = assume destination is a directory
/y = suppress prompting for overwriting existing file
YAY!!! It worked! thanks so much!Regards,
Money Saver0
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 355.9K Banking & Borrowing
- 255K Reduce Debt & Boost Income
- 456.2K Spending & Discounts
- 248.4K Work, Benefits & Business
- 606.1K Mortgages, Homes & Bills
- 179.1K Life & Family
- 264K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards
