My lecturer gave the following as an in lecturer lab but i'm having trouble understanding how to do it. There are two scripts involved. The following is the first.
A9: Move the second batch script file into the “Processing” subfolder.
A10” Go to the root directory of the C: drive (This command must work the same from whichever drive, folder or subfolder the script is currently in.)
A11: Run the second batch script file.
A12: Update the folder search path for batch script file execution to include the “Processing” subfolder, and then display the folder search path. (Make sure you preserve the folders that were already in the search path.)
A13: Run the second batch script file again, by specifying only the file’s name.
how exactly would I do this.
what I don't understand is how you would get the batch script to run in any directory. In this case how would I be able to run the script from the root of the c drive when the script is located in the /processing file without specifying a path. I have looked into various thing including %~dp0 but I don't understand this.