Write a DOS Batch File
- or -
Post a project like this£12/hr(approx. $15/hr)
- Posted:
- Proposals: 1
- Remote
- #45956
- Expired
Description
Experience Level: Intermediate
Create automated operations using a command line interface.
You are required to write a batch file for the following scenario. On completion you will submit your code listing and program documentation.
create a directory called backup on your user disk.
you have been asked to provide a batch program to perform a range of backup and restore tasks. the program will be menu driven and will provide the following
A Backup all files and subdirectories from a specific location into a new subdirectory inside the backup directory. the new folder must be given a name whos format is FULLddmmyyyy. To create the ddmmyyy part of the directory's name the letters dd must be replaced by the current day (two digits) mm must be replaced by the current month (two digits) and the yyyy must be replaced by the current year (four digits) so a possible directory name might be FULL14112006
the original files must have their archive attributes switched off so that option B in the menu does not back them up again.
B carry out an incremental backup. i.e. only files that have been altered in the specific location and its subdirectories since the last backup. this backup must be stored in a directory inside the backup directory whose name is format is INCddmmyyyy (the ddmmyyyy part of the directory name should be created in the same way as option A). the files backed up have their archive attribute switched off so that another choice of B in the menu does not back them up again.
C Restore all files from a specific backup location (prompt for this ) to the location specified in the command line parameter.
D Quit the system
Notes
Options A and B
A single command line parameter will be used, which will give the program the location where the files to be backed up are currently stored.
Option C
use the value of the command line parameter as the destination into which you will place the restored files. you will need to prompt the user for the location of the backup files which have to be restored
The program should be menu driver and user friendly
the menu will be displayed repeatedly until the user select the option to quit.
the program should be robust i.e. it should not crash if the backup and/or restore directories do not exist or if the user forgets to include the necessary command line parameter.
It should inform the user of the programs progress.
Include help displays for potential errors such as those mentioned above.
In the program code there must be comments on what each command does.
It must be a DOS batch file.
You are required to write a batch file for the following scenario. On completion you will submit your code listing and program documentation.
create a directory called backup on your user disk.
you have been asked to provide a batch program to perform a range of backup and restore tasks. the program will be menu driven and will provide the following
A Backup all files and subdirectories from a specific location into a new subdirectory inside the backup directory. the new folder must be given a name whos format is FULLddmmyyyy. To create the ddmmyyy part of the directory's name the letters dd must be replaced by the current day (two digits) mm must be replaced by the current month (two digits) and the yyyy must be replaced by the current year (four digits) so a possible directory name might be FULL14112006
the original files must have their archive attributes switched off so that option B in the menu does not back them up again.
B carry out an incremental backup. i.e. only files that have been altered in the specific location and its subdirectories since the last backup. this backup must be stored in a directory inside the backup directory whose name is format is INCddmmyyyy (the ddmmyyyy part of the directory name should be created in the same way as option A). the files backed up have their archive attribute switched off so that another choice of B in the menu does not back them up again.
C Restore all files from a specific backup location (prompt for this ) to the location specified in the command line parameter.
D Quit the system
Notes
Options A and B
A single command line parameter will be used, which will give the program the location where the files to be backed up are currently stored.
Option C
use the value of the command line parameter as the destination into which you will place the restored files. you will need to prompt the user for the location of the backup files which have to be restored
The program should be menu driver and user friendly
the menu will be displayed repeatedly until the user select the option to quit.
the program should be robust i.e. it should not crash if the backup and/or restore directories do not exist or if the user forgets to include the necessary command line parameter.
It should inform the user of the programs progress.
Include help displays for potential errors such as those mentioned above.
In the program code there must be comments on what each command does.
It must be a DOS batch file.
Michael V.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
0%
Last project
24 Apr 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies