can someone help writing a .bat?

April 8, 2009 at 08:52:48
Specs: Windows Vista
i need help writing a batch file to do:
1. Write a batch file that creates a directory named asg9.
2. Move the cursor to the new directory (asg9).
3. Write the Windows XP version number to a file named ver.txt.
4. Now append the disk volume label and serial number to ver.txt.
5. Display the contents of ver.txt without modifying it.
6. Pause the batch file.
7. Change the name of ver.txt file to asg9.txt.
8. Change back to the original directory.
9. Again pause the batch file.

if someone could help me out would be much appreciated! saw an old post with something similar but didnt do everything i needed it to do, and already had that part of the problem done. would appreciate any assistance

See More: can someone help writing a .bat?

Report •

April 8, 2009 at 09:07:04
Awesome. When you get past the, "Have people on the Internet do my homework for free" stage, let us know.

If you start doing your homework yourself, but run into problems, feel free to ask us. Make sure to include the code you're having problems with.

If you prefer to have the Internet to do your homework, well, that's an option, too.

Report •

April 8, 2009 at 09:07:45
What do you have so far?

If at first you don't succeed, you're about average.


Report •

April 8, 2009 at 15:32:46
thanks for not jumping to conclusions mech, right now i have

mkdir asg9
cd asg9
ver > ver.txt
vol >> ver.txt
attrib ver.txt

this is what i have so far please let me know if anythings wrong.. the ? is the parts i cant figure out.. not necessarily asking you to do it just need a direction to go in.. ive only had to do something like this once before and it wasnt this complicated.

Report •

Related Solutions

April 8, 2009 at 21:18:34
Commands to study for each line of your queries:
1. MD
3. VER
4. VOL
7. REN

What you've got for lines 3, 4, 6 and 9 looks good.

Good luck

Report •

April 8, 2009 at 21:57:52
thanks valerie,
never did figure out how to use popd and pushd. then md is same as mkdir as you prob already know...
what i ended up turning in:

mkdir asg9
cd asg9
ver > ver.txt
vol >> ver.txt
type ver.txt
rename "ver.txt" "asg9.txt"
cd C:\users

guess its the best i can do... and dont think prof expects to much from us.
- thanks for the help

Report •

April 9, 2009 at 01:58:45
Fine - glad you managed to work it out - at least an A+ performance.

Report •

Ask Question