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
4043 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


 
 
 
 


4171 posts

Uber Geek
+1 received by user: 58

Moderator
Trusted
Lifetime 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

The Overrated Raccoons
8434 posts

Uber Geek
+1 received by user: 1144

Mod Emeritus
Trusted
Lifetime 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 / Gavin / DemiseNZ

 

For Free Games, Geekiness and Reviews, visit :

 

Home Of The Overrated Raccoons

 

 


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 »

$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27


Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02


Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15


Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37


Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59


Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42


New Chief Technology Officer role created
Posted 19-Dec-2017 22:18


All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54


How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52


NOW to deploy SD-WAN to regional councils
Posted 19-Dec-2017 19:46


Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52


New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39


UAV Traffic Management Trial launching today in New Zealand
Posted 12-Dec-2017 16:06


UFB connections pass 460,000
Posted 11-Dec-2017 11:26



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.