command to scan for network. if found/not found do something - Super User © superuser.commost recent 30 from superuser.com2018-01-21T22:19:33Zhttp://superuser.com.xemphimonlines.com/feeds/question/1285045http://www.creativecommons.org/licenses/by-sa/3.0/rdf http://superuser.com.xemphimonlines.com/q/1285045-2command to scan for network. if found/not found do something © superuser.comMichael Lakehttp://superuser.com.xemphimonlines.com/users/8617942018-01-12T23:10:20Z2018-01-12T23:10:20Z<p>followed this and didn't work <a href="https://hackaday.com/2018/01/05/finding-your-motorbike-using-wi-fi/" rel="nofollow noreferrer">https://hackaday.com/2018/01/05/finding-your-motorbike-using-wi-fi/</a> and basic instructions shows</p><pre><code>scan_cfg={}scan_cfg.ssid="my_network"scan_cfg.show_hidden=1wifi.sta.getap(scan_cfg, 1, my_function)</code></pre><p>but I get this</p><pre><code>C:\Windows\System32&gt;scan_cfg={}'scan_cfg' is not recognized as an internal or external command,operable program or batch file.C:\Windows\System32&gt;scan_cfg.ssid="my_network"'scan_cfg.ssid' is not recognized as an internal or external command,operable program or batch file.C:\Windows\System32&gt;scan_cfg.show_hidden=1'scan_cfg.show_hidden' is not recognized as an internal or external command,operable program or batch file.C:\Windows\System32&gt;wifi.sta.getap(scan_cfg, 1, my_function)'wifi.sta.getap' is not recognized as an internal or external command,operable program or batch file.</code></pre><p>I am trying to create a bat file that scans for my network, and when not found, runs a function in a different drive i.e.F:\flolder\subfolder\name of file.bat</p>