Jump to content

IceBoxQS

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About IceBoxQS

IceBoxQS's Achievements

0

Reputation

  1. I hope someone can help. I am trying to do about the same thing but I can't get the exe file to work if I put any switches after it. For example: shell("netstat.exe -ano > c:\temp.txt") This just flashes the command window and I get no output file on my c drive. I have also tried: shell("netstat.exe -ano > ""c:\temp.txt""") I tried this because in the help section they say the path can be lost if you don't double quote the path. Anyhow it didn't help any. I've tried a number of other methods like tossing the string in a variable like the guy above and then putting the variable in the shell function. But that doesn't work either. The only way I can get it to work is if I use: shell("netstat.exe") I have also tried these different ways using Process.Start And putting the switches in for the arguements. Anyhow that is where I'm at and I'm just spinning my wheels currently. Does anyone know how to get the switches to work after an exe in vb .net? Update: Well I still haven't figured out how to do it in VB.net. But I can call on a batch file from vb.net, which then fires: netstat -ano > c:\netstat.txt It worked that way but that is round about and ugly. Anyone have something more sound? Please!
×
×
  • Create New...