Computing.Net > Forums > Programming > Basic batch file help

Basic batch file help

Reply to Message Icon

Original Message
Name: bigpaul456
Date: November 5, 2007 at 06:51:29 Pacific
Subject: Basic batch file help
OS: XP
CPU/Ram: nbn
Model/Manufacturer: nbnb
Comment:

I need a batch file that writes the Windows XP version number to a file named ver.txt. Then add to the batch file the command that displays the disk volume label and serial number, appending that output to ver.txt.

I really dont know what I'm doing, any help would be appreciated. Thanks


Report Offensive Message For Removal

Response Number 1
Name: IVO
Date: November 5, 2007 at 07:01:57 Pacific
Subject: Basic batch file help
Reply: (edit)

@Echo Off
Ver > ver.txt
Vol >>ver.txt


Report Offensive Follow Up For Removal

Response Number 2
Name: bigpaul456
Date: November 5, 2007 at 07:17:38 Pacific
Subject: Basic batch file help
Reply: (edit)

Wow thank you so much for such a quick response. So simple but I never would have gotten there, haha. Anyways I need some more help because I have a few assignments due, I'd be willing to pay anyone for their time.

1. Write a batch file that creates a directory named asg5.
2. Then change the cursor to the new directory (asg5).
3. Display the system time without changing it and save the data as time.txt.
4. Now lists the contents of the new directory (asg5).
5. Set a pause before closing


Report Offensive Follow Up For Removal

Response Number 3
Name: tonysathre
Date: November 5, 2007 at 10:31:09 Pacific
Subject: Basic batch file help
Reply: (edit)

::==
@echo off
md asg5
cd asg5
echo %time%
echo %time% >> time.txt
dir
pause
::==

That will be $23,592,385,238,523 please.

"Computer security." — Oxymoron


Report Offensive Follow Up For Removal

Response Number 4
Name: bigpaul456
Date: November 5, 2007 at 13:24:55 Pacific
Subject: Basic batch file help
Reply: (edit)

IVO is a genius


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Basic batch file help

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software