Results 1 to 3 of 3

Thread: Calling Up NetStat and NbtStat Commands

  1. #1

    Thread Starter
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    Question Calling Up NetStat and NbtStat Commands

    This is what i put i had too change the Drive Letters but Its not Saving anything in the myfile.txt for C: I open it and its Blank...


    VB Code:
    1. Private Sub Form_Load()
    2.   Shell ("E:\Windows\System32\cmd.exe /e  E:\Windows\System32\netstat -n >> C:\myfile.txt"), vbNormalFocus
    3. End Sub

    I went threw all the NetStat and NbtStat Commands and nothing was saved into that Text File...

  2. #2

    Thread Starter
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    Re: Calling Up NetStat and NbtStat Commands

    My Orginal Thread :

    I'm making a Networking Application using the traditional DOS Commands for NetStat and NbtStat...

    I have an App made but its not doing what i need it to do,I have a Different Button for each NetStat and Nbt Stat Commands.It brings up a DOS Window but Pings first and Dosnt Do the actual Command itself..

    This is what i have:
    VB Code:
    1. Private Sub KewlButtons1_Click()
    2. Open App.Path & "\exec.bat" For Append As #1
    3. Print #1, "@cls"
    4. Print #1, "@echo [" & Text1 & Text2; "]"
    5. Print #1, "@netstat -n"
    6. Print #1, "@pause"
    7. Close #1
    8. Dim X
    9. X = Shell(App.Path & "\exec.bat", vbMaximizedFocus)
    10. End Sub

    I need help with the Following Commands:

    NetStat -n ,NetStat -e,NetStat -s, NetStat -a ,NetStat -r,NetStat -p proto

    NbtStat -a,NbtStat -A,NbtStat -c, NbtStat -r,NbtStat -s,NbtStat -S, NbtStat -n & NbtStat -R..

    Thxs in Advance....

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Calling Up NetStat and NbtStat Commands

    Wasn't this resolved the other day? That's the problem with double posts. Nobody knows when the other is resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width