Jump to content

How can I write an install script to make an entry in Windows Firewall


mgresham

Recommended Posts

I want to make an entry in Windows Firewall for the America's Army executable.

I know I can make an entry in Windows Firewall from a command line by using the following syntax:

 

netsh firewall add allowedprogram "C:\UserFiles\XXXXX\GameServers\TCxxxxx\system\server.exe" AA ENABLE

 

So my question is how do I compensate for the X variables above? I'm guessing I would use one, or a combination of the variables below:

 

netsh firewall add allowedprogram "%userfilespath%\%gameserverroot%\%gameserverexe%" AA ENABLE

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use