- Posts: 7
- Thank you received: 0
hi all need a lil help with batch files
The commands given so far should do what you want, but if you want to check then simply add 'pause' (without the quotes) as the last line in your batch file. The window will then sit on the screen until you press a key, which will allow you to read any messages
The window closes when the commands in the batch file have all executed; just because the window closes quickly doesn't mean your output file hasn't been written.
The commands given so far should do what you want, but if you want to check then simply add 'pause' (without the quotes) as the last line in your batch file. The window will then sit on the screen until you press a key, which will allow you to read any messages
i just want to say thats to every one here for helping me out with with but bishop you helped me out alot there thanks . that seems to work tight is will go well with my lil anispyware proggram
Type the following or cut and paste this in notepad and save as Filename.cmd.when you run this cmd file it will create test1.txt file in D drive of your pc.you can specify the drive location or path what ever you want in cmd.I hope it will solve your problem
Echo off
cls
echo ************************************************************
echo * For storing the Network log
echo * Please do not disturb
Echo **********************
Netstat -ne >> d:\tets1.txt
Hi
Type the following or cut and paste this in notepad and save as Filename.cmd.when you run this cmd file it will create test1.txt file in D drive of your pc.you can specify the drive location or path what ever you want in cmd.I hope it will solve your problem
Echo off
cls
echo ************************************************************
echo * For storing the Network log
echo * Please do not disturb
Echo **********************
Netstat -ne >> d:\tets1.txt
thats tight to know i already tryed it and it works good thanks alot im always happy to learn