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.




36 posts

Geek


Topic # 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

Create new topic
55 posts

Master Geek


  Reply # 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

Infrastructure Geek
4042 posts

Uber Geek
+1 received by user: 193

Trusted
Microsoft NZ
Subscriber

  Reply # 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"




Technical Evangelist
Microsoft NZ
about.me/nzregs
Twitter: @nzregs


 
 
 
 


4100 posts

Uber Geek
+1 received by user: 42

Moderator
Trusted
Subscriber

  Reply # 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

Runnin' and Gunnin'
8122 posts

Uber Geek
+1 received by user: 1033

Mod Emeritus
Trusted
Subscriber

  Reply # 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 / @DemiseNZ / Gavin
 
Corsair Carbide SPEC-02 / Corsair VS550 / G.SKILL Ripjaws X 8GB / Zotac 760GTX AMP! / ASUS H81M-E / Intel Pentium K Anniversay G3258

 

Internet provided by : Voyager - VDSL 68/13  -  Musical Support by : Like A Storm - Visual Entertainment by : Plex and Steam and Overwatch


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Push notifications: A productivity killer
Posted 25-Jul-2017 14:15


Intergen takes SKYCITY to the cloud
Posted 25-Jul-2017 14:04


Nothing nebulous about Microsoft’s cloud-transition
Posted 21-Jul-2017 15:34


We’re spending more on tech, but not as much as Australians
Posted 21-Jul-2017 11:43


Endace announces EndaceFabric for network-wide packet recording
Posted 20-Jul-2017 20:49


Acorn 6: MacOS image editing for the rest of us
Posted 20-Jul-2017 17:04


HTC faces backlash over keyboard pop-up ads
Posted 19-Jul-2017 15:53


BNZ adds Visa credit cards to Android Pay wallet
Posted 18-Jul-2017 19:44


Still living in a Notification hell – Om Malik
Posted 18-Jul-2017 13:00


Duet Display uses iPad to extend Mac, PC
Posted 18-Jul-2017 10:58


PC sales could be worse
Posted 17-Jul-2017 07:34


Crypto-currencies, tulips, market bubbles
Posted 17-Jul-2017 06:38


NZ Tech Podcast: Big batteries, solar cars, cold war, IoT
Posted 16-Jul-2017 16:53


Vodafone Australia mulls Wisp alliance, NZ implications
Posted 13-Jul-2017 16:49


Rural health professionals see fibre pay-off
Posted 13-Jul-2017 11:52



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.

Alternatively, you can receive a daily email with Geekzone updates.