Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi.Im doing this project and need help.heres the problem
-create a batch file called backup
-perform complete backups on Monday,Wednesday and Friday.Perform incremental backups on Tuesday and Thursday.
-write the batch file so the user would type:
backup
ie backup Monday
-make all tabs in batch file to be set at 5 spaces
-test the batch to see if it worked.
Anyone helps i would be grateful.Bye!

Hi,
The xcopy command will make the nessesary
backups for you.
Example. The below backs up the registrycls
@echo off
rem first two back up
rem third restores
xcopy %windir%\*.dat c:\register /h /i /r /y
xcopy %windir%\*.ini c:\register /h /i /r /y
xcopy c:\register %windir% /h /r /yc:\windows\command\xcopy32 c:\*.* d: /h /c /e /k
NEXT:
IF %1. == . GOTO USAGE
GOTO %1
:monday
your commands
:tuesday
your commands
continue on until sunday.
Then
:usage
echo type backup allow 1 space then type the echo day of the week
Call the bat backup. To run it you would typebackup monday
Tabs
cls
@echo off
echo 1
echo 2
echo 3
echo 4
echo 5
echo Well that is 1 to 5. Just place your ech text over 5 spaces.Hope this is of help.
Robin Raintree World Library

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |