- Posts: 7
- Thank you received: 0
hi all need a lil help with batch files
18 years 4 months ago #15470
by nibsa
hi all need a lil help with batch files was created by nibsa
h all i know this is a noob thing to ask but im a noob at proggram in any lang but am trying to learn vb and batch but need a lil help
im trying to make a batch file that will run the command in xp pro netstat -e or -n or -na and such and save this info to a text file
i tryed
c:\>windows\command netstat -e >> test.txt but unable to make it work if any one could plz help i would be very thankful
thanks ,
nibsa
im trying to make a batch file that will run the command in xp pro netstat -e or -n or -na and such and save this info to a text file
i tryed
c:\>windows\command netstat -e >> test.txt but unable to make it work if any one could plz help i would be very thankful
thanks ,
nibsa
18 years 4 months ago #15473
by Arani
Picking pebbles on the shore of the networking ocean
Replied by Arani on topic batch files
create the batch file to the specifications you need. and then save it as..filename.bat
this will help you to run it as a batch file. if you save it as a txt file which is text file, it wont run
any problems let us know
this will help you to run it as a batch file. if you save it as a txt file which is text file, it wont run
any problems let us know
Picking pebbles on the shore of the networking ocean
18 years 4 months ago #15479
by nibsa
hi im sorry i dont think i made it clear eng. on what i am trying to do so let me try again.
ok i want to make a batch file that when ran it would open up command screen "cmd screen" and then auto give command netstat - e and then save the output to whatevername.txt i hope this help a lil sorry
ok i want to make a batch file that when ran it would open up command screen "cmd screen" and then auto give command netstat - e and then save the output to whatevername.txt i hope this help a lil sorry
- FallenZer0
- Offline
- Premium Member
Less
More
- Posts: 259
- Thank you received: 0
18 years 4 months ago #15480
by FallenZer0
-There Is A Foolish Corner In The Brain Of The Wisest Man- Aristotle
Replied by FallenZer0 on topic Re: hi all need a lil help with batch files
@echo off
netstat -[options] >> whateverfile.txt
netstat -[options] >> whateverfile.txt
-There Is A Foolish Corner In The Brain Of The Wisest Man- Aristotle
18 years 4 months ago #15483
by Arani
Picking pebbles on the shore of the networking ocean
Replied by Arani on topic batch files
yes whatever fallenzero said, put that in the autoexec file. that will make the commands be executed on startup of the system
Picking pebbles on the shore of the networking ocean
18 years 4 months ago #15484
by Arani
Picking pebbles on the shore of the networking ocean
Replied by Arani on topic batch files
and if your system runs xp, here are the instructions
support.microsoft.com/?kbid=314488
support.microsoft.com/?kbid=314488
Picking pebbles on the shore of the networking ocean
Time to create page: 0.135 seconds