Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old April 30th, 2008, 10:50 PM
Dratnz Dratnz is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 Dratnz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > DOS Batch - Idea's to help with a little dos batch file :)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT