Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: I can't add firewall rules because .exe stored in a folder named like an enviroment variable (%Program Files%)


Newbie

Status: Offline
Posts: 1
Date:
I can't add firewall rules because .exe stored in a folder named like an enviroment variable (%Program Files%)
Permalink   
 


I made an program (BitKinex) portable...

When the Cameyo app is executed, the real .exe file is stored in

"C:\Users\MyUserName\AppData\Roaming\VOS\BitKinex\PROG\%Program Files%\BitKinex\bitkinex.exe"

When I want to add a rule to the windows firewall (windows 10), it doesn't work because it thinks %Program Files% is an enviroment variable, but its not - it is just an folder named like an enviroment variable.

Error Msg:

An error occurred while adding a rule.

Error: The parameter is incorrect

Status: The application name could not be resolved

I also tried it with CMD, following command:

netsh advfirewall firewall add rule name="BitKinex" dir=out action=allow program="C:\Users\MyUserName\AppData\Roaming\VOS\BitKinex\PROG\%Program Files%\BitKinex\bitkinex.exe" enable=yes

but then I get this Error Msg:

The application name could not be resolved.

 

Do you know how to handle this problem?

 



-- Edited by testuser123 on Tuesday 11th of October 2016 07:48:47 AM



-- Edited by testuser123 on Tuesday 11th of October 2016 07:49:42 AM

__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

If you install to C:\BitKinex, your executable won't have a % in the folder name.



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard