Write a DOS Batch File

  • Posted:
  • Proposals: 2
  • Remote
  • #45956
  • Expired
NVision ~.Golam M. have already sent a proposal.
  • 0


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

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.

New Proposal

Create an account now and send a proposal now to get this job.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.