Hello I need help with this
http://www.mediafire.com/file/roatgq6djr8j1u4/MAIN.txt
Thanks. :)
Batch HELP
Moderator: DosItHelp
Re: Batch HELP
Your link is not valid anymore. If it was a Batch related question and you still need help, please post your question and your code directly in this forum.
Regards
aGerman
Regards
aGerman
Re: Batch HELP
1: Output a line to the screen that displays your user ID, name.
2: Create a folder on the root of the C: drive called “My Batch Script File”
3: Go into the “My Batch Script File” folder.
4: Create a folder within “My Batch Script File” called “Input”
5: Create another folder within “My Batch Script File” called “Processing”
6: Create another folder within “My Batch Script File” called “Output”
7: List all hidden files in the root directory of the C: drive – output the listing to a file called “Batch Script File Input Data.txt” in the “Input” subfolder.
8: Make a backup copy of the second batch script file, also on the root of the C: drive, and with the same name, but with extension “.bak”.
9: Move the second batch script file into the “Processing” subfolder.
10: 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.)
11: Run the second batch script file.
12: 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.)
13: Run the second batch script file again, by specifying only the file’s name.
14: Delete folder “My Batch Script File”, together with all subfolders and their contents.
So far i have got
c:
mkdir "c:\My Batch Script"
mkdir "c:\My Batch Script\Input"
mkdir "c:\My Batch Script\Processing"
mkdir "c:\My Batch Script\Output"
2: Create a folder on the root of the C: drive called “My Batch Script File”
3: Go into the “My Batch Script File” folder.
4: Create a folder within “My Batch Script File” called “Input”
5: Create another folder within “My Batch Script File” called “Processing”
6: Create another folder within “My Batch Script File” called “Output”
7: List all hidden files in the root directory of the C: drive – output the listing to a file called “Batch Script File Input Data.txt” in the “Input” subfolder.
8: Make a backup copy of the second batch script file, also on the root of the C: drive, and with the same name, but with extension “.bak”.
9: Move the second batch script file into the “Processing” subfolder.
10: 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.)
11: Run the second batch script file.
12: 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.)
13: Run the second batch script file again, by specifying only the file’s name.
14: Delete folder “My Batch Script File”, together with all subfolders and their contents.
So far i have got
c:
mkdir "c:\My Batch Script"
mkdir "c:\My Batch Script\Input"
mkdir "c:\My Batch Script\Processing"
mkdir "c:\My Batch Script\Output"
Re: Batch HELP
1. What ID and what name? Where do they come from?
2. unnecessary
3. unnecessary
4.
md "C:\My Batch Script\Input"
5.
md "C:\My Batch Script\Processing"
6.
md "C:\My Batch Script\Output"
7.
>"C:\My Batch Script\Input\Batch Script File Input Data.txt" dir /a-dh /b C:\
8. & 9. What second batch file?
10.
cd /d C:\
11. What second batch file?
12.
set "path=C:\My Batch Script\Processing;%path%"
echo %path%
13. What second batch file and what name?
14.
rd /s /q "C:\My Batch Script"
Regards
aGerman
2. unnecessary
3. unnecessary
4.
md "C:\My Batch Script\Input"
5.
md "C:\My Batch Script\Processing"
6.
md "C:\My Batch Script\Output"
7.
>"C:\My Batch Script\Input\Batch Script File Input Data.txt" dir /a-dh /b C:\
8. & 9. What second batch file?
10.
cd /d C:\
11. What second batch file?
12.
set "path=C:\My Batch Script\Processing;%path%"
echo %path%
13. What second batch file and what name?
14.
rd /s /q "C:\My Batch Script"
Regards
aGerman
Re: Batch HELP
Haha - you just did his home work for him ... I bet
Re: Batch HELP
Thanks that was helpful made it easier.