Batch HELP

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Breakernz
Posts: 3
Joined: 24 Mar 2011 03:17

Batch HELP

#1 Post by Breakernz » 24 Mar 2011 06:02

Hello I need help with this
http://www.mediafire.com/file/roatgq6djr8j1u4/MAIN.txt

Thanks. :):)

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Batch HELP

#2 Post by aGerman » 25 Mar 2011 15:49

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

Breakernz
Posts: 3
Joined: 24 Mar 2011 03:17

Re: Batch HELP

#3 Post by Breakernz » 25 Mar 2011 20:24

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"

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Batch HELP

#4 Post by aGerman » 26 Mar 2011 08:45

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

DosItHelp
Expert
Posts: 239
Joined: 18 Feb 2006 19:54

Re: Batch HELP

#5 Post by DosItHelp » 29 Mar 2011 18:13

Haha - you just did his home work for him ... I bet :D

Breakernz
Posts: 3
Joined: 24 Mar 2011 03:17

Re: Batch HELP

#6 Post by Breakernz » 30 Mar 2011 04:41

Thanks that was helpful made it easier.

Post Reply