Computing.Net > Forums > Disk Operating System > Dos batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos batch file

Reply to Message Icon

Name: Skizz
Date: August 6, 1999 at 17:09:46 Pacific
Comment:

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!



Sponsored Link
Ads by Google

Response Number 1
Name: World Library
Date: August 9, 1999 at 13:37:09 Pacific
Reply:

Hi,
The xcopy command will make the nessesary
backups for you.
Example. The below backs up the registry

cls
@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 /y

c:\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 type

backup 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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Dos batch file

Dos Batch File Commands www.computing.net/answers/dos/dos-batch-file-commands/11921.html

File Size in DOS Batch file www.computing.net/answers/dos/file-size-in-dos-batch-file/3105.html

DOS Batch file to FTP files from UNIX www.computing.net/answers/dos/dos-batch-file-to-ftp-files-from-unix/2105.html