Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


BreaKer

36 posts

Geek


#79961 24-Mar-2011 22:12
Send private message

Hello HELP :)

I need a batch to do these thing help thanks

creates folder on root of c: called "My Batch Script"
creates a folder within "My Batch Script" called "Input"
creates another folder within "My Batch Script" called "Processing"
creates another folder within "My Batch Script" called "Output"

Lists all "hidden files" in the root directory of c: drive -output the listing to a file called "Batch Script File Input Data.txt" in the Input subfolder

Thanks




BreaKer-

Create new topic
Noiseless
55 posts

Master Geek


  #451614 24-Mar-2011 22:35
Send private message

Seems an odd request from my point of view to be asking this as a first post?
Could I ask why and what for? Laughing




CPU:       i7 920 @ 3GHz
RAM:      6 x 1GB Corsair Dominator @ 1600
MOBO:   ASUS P6T X58
GPU:       1GB AMD Radeon 6700
HD:         2 x 500Gb WD Caviar Black in RAID 0
                1 x 1Tb WD Caviar Blue
OS:         Windows 7 Pro 64bit





Regs
4066 posts

Uber Geek
+1 received by user: 206

Trusted
Snowflake

  #451616 24-Mar-2011 22:39
Send private message

c:
mkdir "c:\My Batch Script"
mkdir "c:\My Batch Script\Input"
mkdir "c:\My Batch Script\Processing"
mkdir "c:\My Batch Script\Output"
for /f %%a IN ('dir c:\ /b /ah-s-d') do echo %%a >> "c:\My Batch Script\Input\Batch Script File Input Data.txt"




rscole86
4999 posts

Uber Geek
+1 received by user: 462

Moderator
Trusted
Lifetime subscriber

  #451857 25-Mar-2011 19:02
Send private message

According to your duplicate post, http://www.geekzone.co.nz/forums.asp?forumid=45&topicid=80014 , you are asking us to do your homework?



A1: Output a line to the screen that displays your user ID, name, study stream, the title of this assignment and the name of the batch file.

A2: Create a folder on the root of the C: drive called ?My Batch Script File Assignment?

A3: Go into the ?My Batch Script File Assignment? folder.

A4: Create a folder within ?My Batch Script File Assignment? called ?Input?

A5: Create another folder within ?My Batch Script File Assignment? called ?Processing?

A6: Create another folder within ?My Batch Script File Assignment? called ?Output?

A7: 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.

A8: 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?.

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.

A14: Delete folder ?My Batch Script File Assignment?, together with all subfolders and their contents.



xpd

xpd
Geek of Coastguard
14115 posts

Uber Geek
+1 received by user: 4574

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #451889 25-Mar-2011 21:00
Send private message

Do what I did for one of my computer studies assignment.... ask a student from the previous years class if they had the same assignment - if yes, get a copy and modify it to make it your own :)

My teacher picked up on my using someone elses work...gave me an A+ because I had modified it enough to show I knew what it and I was doing :)




XPD / Gavin

 

LinkTree

 

 

 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.