Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Default Gateway, need to convert my batch script into AutoIT...

$
0
0
Hi guys,

Here is my code that I have been using in most of my batch scripts to obtain default gateway and do simple if a equals b do c etc.

for /f "tokens=2 delims=:" %%i in ('"ipconfig | findstr Gateway | findstr 10."') do set GW=%%i
if "%GW%"==" 10.58.56.1" set SITECODE=BHR


Does anyone have any idea on how to push these two lines into AutoIT? I have seen few topics talking about default gateway and how to get it but most scripts are 15+ lines which doesn't seem right.


I would really appreciate some help.


cheers,

Adrian

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>