Flounder
asked on
Need local IP Address in Setup.exe Command
How do I gather and add the local Windows Server ip address to an application installation command.
For example:
setup.exe /s /z "--path=c:\\program files\\application\\new--l ocalip=192 .1.1.1"
Basically, I need to get the local ip address and enter it in "--localip=..........
Any assistance would be great appreciated.
For example:
setup.exe /s /z "--path=c:\\program files\\application\\new--l
Basically, I need to get the local ip address and enter it in "--localip=..........
Any assistance would be great appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> Create a script?
1. Start Notepad or other text editor. I like to install and use Notepad++
2. Copy the code I posted.
3. Save it as test.bat - or whatever name you like. Just include the .bat extension
> How do I run the command?
1. In Windows Explorer, open the folder containing test.bat
2. Hover mouse over the folder. Press <Shift> key and Right-MouseButton at same time. Pick "Open command window here". This opens a CMD window.
3. Type: test.bat
1. Start Notepad or other text editor. I like to install and use Notepad++
2. Copy the code I posted.
3. Save it as test.bat - or whatever name you like. Just include the .bat extension
> How do I run the command?
1. In Windows Explorer, open the folder containing test.bat
2. Hover mouse over the folder. Press <Shift> key and Right-MouseButton at same time. Pick "Open command window here". This opens a CMD window.
3. Type: test.bat
ASKER
Worked. Thank you.
Just an fyi...how would modify this for powershell?
Just an fyi...how would modify this for powershell?
ASKER
How do I run the command? Create a script?