Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: hi all need a lil help with batch files

hi all need a lil help with batch files 10 years 5 months ago #15470

  • nibsa
  • nibsa's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
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
The administrator has disabled public write access.

batch files 10 years 5 months ago #15473

  • Arani
  • Arani's Avatar
  • Offline
  • Moderator
  • Posts: 745
  • Thank you received: 10
  • Karma: 4
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
Picking pebbles on the shore of the networking ocean
The administrator has disabled public write access.

hi sorry 10 years 5 months ago #15479

  • nibsa
  • nibsa's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
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
The administrator has disabled public write access.

Re: hi all need a lil help with batch files 10 years 5 months ago #15480

  • FallenZer0
  • FallenZer0's Avatar
  • Offline
  • Senior Member
  • Posts: 259
  • Karma: 0
@echo off
netstat -[options] >> whateverfile.txt
-There Is A Foolish Corner In The Brain Of The Wisest Man- Aristotle
The administrator has disabled public write access.

batch files 10 years 5 months ago #15483

  • Arani
  • Arani's Avatar
  • Offline
  • Moderator
  • Posts: 745
  • Thank you received: 10
  • Karma: 4
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
The administrator has disabled public write access.

batch files 10 years 5 months ago #15484

  • Arani
  • Arani's Avatar
  • Offline
  • Moderator
  • Posts: 745
  • Thank you received: 10
  • Karma: 4
and if your system runs xp, here are the instructions
support.microsoft.com/?kbid=314488
Picking pebbles on the shore of the networking ocean
The administrator has disabled public write access.
Time to create page: 0.080 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup