NETSH.

Started by morenos1, March 19, 2018, 01:02:16 PM

Previous topic - Next topic

morenos1

What Am I missing?

This will work from the command prompt:

netsh mbn sh readyinfo "Mobile Broadband Connection"

When I try to do it in WinBatch:

   pline=StrCat("/c netsh",' mbn sh readyinfo "Mobile Broadband Connection" > c:\temp\sierra_info.txt')
   RunHideWait("cmd.exe",pline)

I get: The following command was not found: mbn sh readyinfo "Mobile Broadband Connection".

Thanks.....

morenos1

Found the answer. File redirection.


Thanks....

td

Another favorite question.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade