
April 30th, 2008, 10:50 PM
|
|
n00b DevH'er
|
|
Join Date: Apr 2008
Posts: 1
Time spent in forums: 15 m 13 sec
Reputation Power: 0
|
|
|
DOS Batch - Idea's to help with a little dos batch file :)
Hi. trying out diff ways to make a simple batch file to record information on secure erasing pcs. I am using Killdisk, the app runs, wipes the hdd and exits back to dos. it dumps a file called killdisk.log with details of the secure erase. I then want to have a prompt on the screen for the user to enter the asset number of the pc. this asset number to be then appended to the .log file.
So far i have got it dumping the killdisk.log file. a prompt to enter the asset number, this then renames the killdisk.log to "asset number".log and moves it to a logs folder. this is capturing the data i want, but all seperate files in a folder, while ok, would be nicer to just keep adding the info to a file each time.
to do the above i have used :
PUTINENV P "Enter the asset code to build for: " 15 /U
IF _%STRING% == _ GOTO log.bat
rename killdisk.log %string%.log
move *.log logs
has anyone else got any ideas how i can improve upon this..
cheers
|