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.
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.