gerryd Posted September 16, 2009 Report Share Posted September 16, 2009 i'm using windows 7 professional. i'm taking a forensics class and for our assignment we have to make a .bat file to run from the command line that will gather some information and save it to a text file. things were going fine for me until i tried to keep the commands from showing up on the command prompt. i looked it up and found and used this command:@echo offit was placed at the top of my text. when i ran it, the file created only displayed ECHO IS OFF (everything worked as expected before i added the command). the line didn't do what i wanted so i took it out. now every time i run it the file created only says ECHO IS ON. here's what my script looks like so far:set outdrive=%1set usrinit=%2echo START DATE and TIME___________________________________________ > %outdrive%\investigation1.txtdate /t >> %outdrive%\investigation1.txttime /t >> %outdrive%\investigation1.txtecho SYSTEM INFORMATION____________________________________________ >> %outdrive%\investigation1.txtsysteminfo >> %outdrive%\investigation1.txtecho >> %outdrive%\investigation1.txtecho INVESTIGATOR: %usrinit% ______________________________________ >> %outdrive%\investigation1.txtecho > %outdrive%\investigation1.txti tried creating a new script from scratch and it did the same thing. i tried removing all the echo commands from it and it did the same thing. i tried reseting my computer, zilch. so can anyone tell me how i screwed up? and most importantly how to fix it?outdrive is so that the user can specify what drive the file is to be saved to, and the second parameter is just for the users initals. thank you for any help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.