to cowsmanaut
You don't need any ip address (IPA) or computer name (CN) to test the code, just do this :
Dim $strComputer = "Localhost"
LocalHost means there is always an IPA : 127.0.0.1 if not connected to a network or an IPA automatically taken by your network adaptator from your modem (router,...), or one that you statically encoded.
TO see the result of ipconfig.au3, make this changes in the source (I'm using scite)
1. replace all @CR by @CRLF (carriage return / Line feed)
--> in scite CTRL+H --> find What = @CR and Replace with = @CRLF --> then replace all
2. ALWAYS compile all your au3 files using the latest version (including beta !!!) so check download section for beta installs
3. once compiled (ALT+F7 in scite), go to the directory in "DOS mode" : click on Windows Start / choose Run and type :
%comspec% and then press Enter
A black "Dos" Windows is now running command line
if you have compiled ipconfig.au3 in c:\MyProgs\ipconfig.exe then just type, in this "Dos box", the following commands :
CD\MyProgs (ENTER Key)
IPCONFIG >test.txt (ENTER Key)
exit
To see the results, uses Windows Explorer to open the file test.txt
Nota.: if there is spaces in your path, do this : "CD\My Prog Path With Spaces\Other Dir\" --> quotes needed !
Hope every things right ...