Hi there, I'm a new person seeking out an answer for a problem I'm having.
There is a process/service that is always running (EasyRedirect), from Windows Boot to the end of the day. It really only needs to be running when I open up the application that uses it (Easy-Hide-IP).
I've looked all over the internet for a working .BAT file that would effectively enable the service only when the application is running, and disable it when the application closes.
The closest thing I've gotten to is:
[COLOR=#333333][FONT=Arial]@ECHO OFF[/FONT][/COLOR][COLOR=#333333][FONT=Arial]::enable EasyRedirect[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]net start EasyRedirect[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]::run Easy-Hide-IP[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]call "C:\Program Files (x86)\Easy-Hide-IP\easy-hide-ip.exe"[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]::disable EasyRedirect[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]net stop Easy Redirect[/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]Saved as "Easy-Hide-IP.bat"[/FONT][/COLOR]
When I try to run it, the box comes up, but says Access Denied.
When I run it as an Administrator, it says that it's starting, but the box closes and nothing happens; EasyRedirect continues to run. The only way I can stop it is going into Services and setting it as Disabled and clicking Apply before it has a chance to start up again. Setting it to anything else, and stopping it, does nothing as it starts right back up again.
Any idea as to how to solve this issue?
Thank you!