@echo off
cls
echo.	Created 9th April 2006

echo.    **** Backup Routine to Network Hard Drive (N)****

echo.    Strategy is to copy Myfiles folder completely. Overwrite old files with new ones. 

echo. Xcopy switches
echo. /m - Copies all files with archive bit set. Turns off archive attribute.
echo. /d - Copies files if newer than existing ones.
echo. /s - Copies directories and sub directories except empty ones.
echo. /e - Copies even if errors occur.
echo. /y - Suppress prompts to overwrite a file.

echo. DOS program so use 8 bit file names. ie Program Files directory becomes progra~1

echo Copying modified files to network drive (N:)

xcopy d:\myfiles\*.* N:\myfiles /m/d/s/e/y
xcopy d:\progra~1\*.* N:\progra~1 /m/d/s/e/y 

echo. Del switches (in order of use)
echo. /P - Prompt before deleting
echo. /F - Force deleting of read only files
echo. /S - Delete specified files from all sub-directories
echo. /Q - Quiet mode - no questions asked
echo. /A - Selects files to delete based on attributes. : R S H A  Pefix with - means NOT (eg won't be deleted)

echo Deleting cookies

del c:\docume~1\david\locals~1\history\*.* /F/S/Q/A:RSHA

echo.
echo    ****All important files backed up to Network drive****
echo.
echo    ****All Done - BYE****

prompt $p$g

