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

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



Regs
4066 posts

Uber Geek

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
4973 posts

Uber Geek

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 @ Coastguard NZ
13765 posts

Uber Geek

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 :)




       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.