Question: 1. Create a batch file named new_batchfile 2. Define 2 variables in the batch file named a and b where: [4] a and b will
1. Create a batch file named "new_batchfile" 2. Define 2 variables in the batch file named "a" and "b" where: [4] a and b will store any input from the user 3. Now define another variable called "Add" where Add is the summation of a and b [4] 4. Write down IF-Else statement where, if the output of "Add" is equal to 50: notepad++ will open, else notepad will open [4] 5. Create a directory (in the same directory) called "HW2" and write down IFELSE statement to validate if HW2 exists or not in that directory [4] 6. Create one single file called "output_error" using redirection and redirect the output of the question\# 5 in the new file [4] 7. i. Create two files called "output" and "error" using redirection. [4] ii. Create a directory called "AC322" and create a new file called "HW" in the directory. [3] iii. Remove the directory using only " rd " command and redirect the output and error to the "output" and "error" file that you created in question -(i)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
