WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: morenos1 on March 19, 2018, 01:02:16 PM

Title: NETSH.
Post by: morenos1 on March 19, 2018, 01:02:16 PM
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.....
Title: Re: NETSH.
Post by: morenos1 on March 19, 2018, 01:20:34 PM
Found the answer. File redirection.


Thanks....
Title: Re: NETSH.
Post by: td on March 19, 2018, 01:31:50 PM
Another favorite question.