CMD Copy File

boylin

New Member
Basically i work for a small it company fixing customers machines.

Most of the time we do a backup and reinstallation, therefore i manually backup the main folders in the users folder, such as my documents, music pictures etc (varies on different OS's).

To make my life easier i want to create a CMD or a similar file that will automatically back up these file automatically, i created a txt file and changed it to a .cmd file and so far got the following lines:

cd "%systemdrive%\Users\%Username%"
xcopy "%systemdrive%\Users\%Username%\My Documents"




Can someone possibly create the lines for the following criteria:

Copy the following for all user accounts (user names change):
Contacts, Desktop, Favorites, My Documents, My Music, My Pictures, My Videos

Ask for the drive letter to save the data to (so i can enter the external Hard drive letter as it varies from machine to machine)

Create a new folder and ask for the folder name (so i can name the folder with the customers postcode)

Go to the following hidden file directory and copy the following files: %systemdrive%\Users\%Username%\AppData\Local\Ident ies
%systemdrive%\Users\%Username%\AppData\Local\Micro soft\Outlook
But either of the two above files may not exist so if they do not exist it can skip copying them but i want it to inform me they are not there and then press any key to continue.

There's a challenge for someone, i'm not too good with command prompt based structure.

Hope someone can help, the above would be for Windows 7 but i can play around with a working script and make it work for Windows XP & Vista.
 
If you want,I can make you the computer program that does that.Only not for the next few days since I will be very busy,but the next week I will be free so if you want,I can make it for you.Just be sure that you know exactly what you want before you contact me.Here is my hotmail address:

[email protected]

Or you can simply try to make your own if you know how or find some free computer programs for the same purpose.



Cheers!
 
Back
Top