Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: ij12
| Femeie 25 ani Prahova cauta Barbat 25 - 53 ani |
|
Mrrrr
AdMiN
Inregistrat: acum 18 ani
Postari: 2241
|
|
Quickly and simply backup:
"My Documents" (and subfolders) "Contacts" "Favorites" "Desktop"
from multiple accounts on an XP machine/drive to any other drive.
Batch file (copy and paste into notepad, and save as 'filename.bat')
Code:
@echo off
:: this file will copy the current users Documents etc
:: to a destination drive and folder that you specify (XP only)
color E0
echo ##########################################
echo ### ###
echo ### WELCOME TO XP ACCOUNT BACKUP v1.00 ###
echo ### ###
echo ### YOU *MUST* RUN THIS FROM AN ADMIN ###
echo ### ACCOUNT, OR IT WILL NOT WORK!!! ###
echo ### ###
echo ##########################################
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p sourcehdd= WHICH DRIVE LETTER ARE THE ACCOUNT/S ON - FOR EXAMPLE 'E'?
echo ###########################################
echo ### ### ### THIS SOFTWARE WORKS ###
echo ### BELOW ARE THE CURRENT USER ACCOUNTS ### ### WITH WIN XP ONLY ###
echo ### ### ### VISTA COMING SOON! ###
echo ###########################################
cls
echo #########################################################################
echo ### ###
echo ### WE ARE GOING TO BACKUP DOCUMENTS, DESKTOP, CONTACTS AND FAVORITES ###
echo ### ###
echo #########################################################################
echo --------------------------------------------------------------
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo YOU CAN BACKUP A MAXIMUM OF TEN ACCOUNTS IN ONE SESSION
echo JUST RUN THIS FILE AGAIN TO BACKUP FURTHER ACCOUNTS
echo --------------------------------------------
echo IF YOU ARE BACKING UP LESS THAN TEN ACCOUNTS, SIMPLY PRESS
echo RETURN AFTER YOU ARE ASKED FOR THE REMAINING ACCOUNT NAME/S
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%sourcehdd%:
cd %sourcehdd%":\Documents and Settings"
dir
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo !! REMEMBER, IF YOU'RE NOT ADMIN, THIS PROGRAM MAY FAIL !!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname1= WHAT IS THE FIRST ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname2= WHAT IS THE SECOND ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname3= WHAT IS THE THIRD ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname4= WHAT IS THE FOURTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname5= WHAT IS THE FIFTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname6= WHAT IS THE SIXTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname7= WHAT IS THE SEVENTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname8= WHAT IS THE EIGHTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname9= WHAT IS THE NINTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p accname10= WHAT IS THE TENTH ACCOUNT NAME - *THIS IS CASE SENSITIVE* (SEE LIST ABOVE) ?
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p ltr= WHICH DRIVE LETTER AM I BACKING UP TO - FOR EXAMPLE 'E' ?
set /p foldername= FOLDER NAME I'M BACKING UP TO, IE: 'Johns Backup'?
cls
color ce
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo OKAY, SO I'M BACKING UP ACCOUNT/S FROM %sourcehdd%: TO %ltr%:\%foldername%...
pause
set drive=%ltr%:\%foldername%
set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo -------------------------------------------------------
echo ### backing up all accounts... shall I do this?... ###
echo ### ###
echo -------------------------------------------------------
set /p quityes= type 'exit' and press [RETURN] to exit this operation...
%quityes%
::account 1
%backupcmd% "\Documents and Settings\%accname1%\My Documents" "%drive%\%accname1%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname1%\Favorites" "%drive%\%accname1%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname1%\Contacts" "%drive%\%accname1%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname1%\Desktop" "%drive%\%accname1%_Backup\My_Desktop_Backup"
::account 2
%backupcmd% "\Documents and Settings\%accname2%\My Documents" "%drive%\%accname2%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname2%\Favorites" "%drive%\%accname2%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname2%\Contacts" "%drive%\%accname2%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname2%\Desktop" "%drive%\%accname2%_Backup\My_Desktop_Backup"
::account 3
%backupcmd% "\Documents and Settings\%accname3%\My Documents" "%drive%\%accname3%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname3%\Favorites" "%drive%\%accname3%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname3%\Contacts" "%drive%\%accname3%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname3%\Desktop" "%drive%\%accname3%_Backup\My_Desktop_Backup"
::account 4
%backupcmd% "\Documents and Settings\%accname4%\My Documents" "%drive%\%accname4%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname4%\Favorites" "%drive%\%accname4%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname4%\Contacts" "%drive%\%accname4%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname4%\Desktop" "%drive%\%accname4%_Backup\My_Desktop_Backup"
::account 5
%backupcmd% "\Documents and Settings\%accname5%\My Documents" "%drive%\%accname5%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname5%\Favorites" "%drive%\%accname5%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname5%\Contacts" "%drive%\%accname5%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname5%\Desktop" "%drive%\%accname5%_Backup\My_Desktop_Backup"
::account 6
%backupcmd% "\Documents and Settings\%accname6%\My Documents" "%drive%\%accname6%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname6%\Favorites" "%drive%\%accname6%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname6%\Contacts" "%drive%\%accname6%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname6%\Desktop" "%drive%\%accname6%_Backup\My_Desktop_Backup"
::account 7
%backupcmd% "\Documents and Settings\%accname7%\My Documents" "%drive%\%accname7%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname7%\Favorites" "%drive%\%accname7%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname7%\Contacts" "%drive%\%accname7%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname7%\Desktop" "%drive%\%accname7%_Backup\My_Desktop_Backup"
::account 8
%backupcmd% "\Documents and Settings\%accname8%\My Documents" "%drive%\%accname8%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname8%\Favorites" "%drive%\%accname8%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname8%\Contacts" "%drive%\%accname8%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname8%\Desktop" "%drive%\%accname8%_Backup\My_Desktop_Backup"
::account 9
%backupcmd% "\Documents and Settings\%accname9%\My Documents" "%drive%\%accname9%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname9%\Favorites" "%drive%\%accname9%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname9%\Contacts" "%drive%\%accname9%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname9%\Desktop" "%drive%\%accname9%_Backup\My_Desktop_Backup"
::account 10
%backupcmd% "\Documents and Settings\%accname10%\My Documents" "%drive%\%accname10%_Backup\My_Documents_Backup"
%backupcmd% "\Documents and Settings\%accname10%\Favorites" "%drive%\%accname10%_Backup\My_Favorites_Backup"
%backupcmd% "\Documents and Settings\%accname10%\Contacts" "%drive%\%accname10%_Backup\My_Contacts_Backup"
%backupcmd% "\Documents and Settings\%accname10%\Desktop" "%drive%\%accname10%_Backup\My_Desktop_Backup"
cls
echo ### BACKUP WAS COMPLETED, AND SAVED IN SEPARATE DIRECTORIES UNDER: %ltr%:\%foldername%
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ### YOU MAY RUN THIS FILE AGAIN, TO BACKUP FURTHER ACCOUNTS.
echo ###
echo (c) Matt Foot 21-12-2008
echo ###
echo ###
@pause |
_______________________________________
|
|
pus acum 15 ani |
|