Sorry if this was double posted...
I have an assignment in which I have to do the following and I am having quite a bit of trouble with it, would anyone be kind enough to do it for me I promise I will not forget that or any help would be greatly appreciated. The assignment is as follows
Design a batch file, called UTIL.BAT that contains these elements combined together:
Create a menu with no less than five options, each option going to a different section within the same batch file. The menu options and their respective actions are as follows.
• 1. One section asks the user “What is your name?” , stores the result, and prints it to the screen (use the Input utility)
• 2. One section asks the user “Give me the name and path of a file” (Use the INPUT utility. The filename may include an extension). The same section then prompts the user: “Enter an extension” and captures that. It will check for a file with the same path and filename but with the separately input extension (use the JUSTNAME utility to strip the extension from the initial file). It will state whether the file exists or not (use the IF EXIST batch command).
• 3. This section prompts the user to input the name of a directory .
Then use the FOR command and pass the directory name and each filename in this directory that ends in *.TXT to a subroutine (Batch File ) called DISPBAK.BAT .
DISPAK.BAT will do the following:
1. Copy each file to the current directory
2. Copy each file to a backup directory on the floppy drive called BACKUP with the extension changed to .BAK
3. Display the contents of each file on the screen with its text in alphabetic order.
• 4. One section displays the main batch file (assume that you do not know the name util.bat ) in the EDIT window.
• 5. The last section tells the user, by his name, that the batch file has reached the end.
The user should be able to check each section before the batch file ends – create a loop that brings the user back to the main menu, before exiting.
Yout batch files must have remarks for each section - clearly identifying that section and the purpose for that section. Note – The more remarks the better.
Make sure that you create a boot diskette with the following files are on the same diskette as the UTIL.BAT and SEARCH.BAT batch files:
• JUSTNAME.EXE
• INPUT.EXE
• CHOICE.COM
• EDIT.COM
• COMMAND.COM
All files should be stored in the root directory. (Or you can use other directories and the PATH command in you autoexec.bat).
I've included the Justname.exe,input.exe,choice.exe,edit.com,command.com all in the attached rar.
This is do tomorrow so any help would be greatly appreaciated thanks very much.