Sign in to follow this  
Ron Attwood

Disabling programs in FSX

Recommended Posts

Does anyone know if you can close a program automatically on FSX start up? I know how to start a program via the exe.xml, file but is it possible to do the reverse?

Example: I have Malwarebytes running and would like to have it stop when I start FSX. Yes, I know I can stop it manually but I usually forget. :unsure:

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Not sure myself Ron but I know what you mean malwarebytes is a pia - you can not get it to shutdown in its menu options even if you dont want it to startup in windows - I have to manually close it in sys tray - it also come on when it wants to - hopefully someone will have an answer as malwarebytes does a good job

Share this post


Link to post
Share on other sites

Hi Rich, I don't have a problem with being closed. Right click\Exit. It's just that I have only so many brain cells left....

Share this post


Link to post
Share on other sites

Hi Rich, I don't have a problem with being closed. Right click\Exit. It's just that I have only so many brain cells left....

 

Yes Ron but what irritates me is I can stop it from loading with windows even after setting it in the Malwarebytes gui - I have paid version and it just will not comply - it only really needs to be ran when you want to make sure all is good - this program doesn't need to be running all of the time - for me anyway but its a must program hence the full version purchase - two other musts are ccleaner and Spybot

Share this post


Link to post
Share on other sites

Ah, I see what you mean. I too have the Pro version, I've just now de-selected 'start with windows', so I'll re-boot and see what happens.

 

 

EDIT: No, it did exactly like what it oughta. :smile:

Share this post


Link to post
Share on other sites

Ah, I see what you mean. I too have the Pro version, I've just now de-selected 'start with windows', so I'll re-boot and see what happens.

 

 

EDIT: No, it did exactly like what it oughta. :smile:

 

Thanks Ron - just updated i will try again :) keep those beautiful paints coming :)

Share this post


Link to post
Share on other sites

Ron and Rich, I had the free version for sometime.  Since you both use it, is it worth going ahead and purchasing the premium?  That thing finds stuff all of the time. it is almost scary.

 

Thanks,

Share this post


Link to post
Share on other sites

Ron and Rich, I had the free version for sometime.  Since you both use it, is it worth going ahead and purchasing the premium?  That thing finds stuff all of the time. it is almost scary.

 

Thanks,

 

Hi Carl no need to buy it - with the free version all you have to do is start it up manually and works the same - the pay version runs all the time - this is the only difference - but get it very important piece of software

Share this post


Link to post
Share on other sites

Thanks Rich,

I just reinstalled the free version and already found 46 items. I guess it could casuse a few "burps" while flying if it is running behind the scenes. 

Ron I guess if you had the free version you would have more control?  By the way if I had behaved myself when I was much younger I wouldn't have kill so many of my brain cells and could be smart enought to fix your problem. (lol)

Share this post


Link to post
Share on other sites

 

 


That thing finds stuff all of the time. it is almost scary.

What sort of websites are you visiting? :lol:

For the life of me I can't remember why I bought the full version. There must have been a compelling reason. :unsure:

Share this post


Link to post
Share on other sites

Does anyone know if you can close a program automatically on FSX start up? I know how to start a program via the exe.xml, file but is it possible to do the reverse?

Ron, there are some popular startup managers but I just use a batch file to shut down program's I don't need when FSX opens and then start them up again automatically when I exit FSX. You can hide the CMD window easily enough and batch files are flexible and free. I have a small menu to select external program configurations depending on what I want to do with FSX. If you run the batch file as administrator you should have no problems with temperamental Windows software.

Share this post


Link to post
Share on other sites

Most of the time it is flight sim websites.  By the way this was the first time I used the program in several months.

Share this post


Link to post
Share on other sites

Ron, there are some popular startup managers but I just use a batch file to shut down program's I don't need when FSX opens and then start them up again automatically when I exit FSX. You can hide the CMD window easily enough and batch files are flexible and free. I have a small menu to select external program configurations depending on what I want to do with FSX. If you run the batch file as administrator you should have no problems with temperamental Windows software.

That sounds like an answer! The trouble is I go a bit all unnecessary when I hear the words 'batch file'.

Share this post


Link to post
Share on other sites

I have both Malwarebytes and Superantispyware (Free versions) that are run once a week along

 

with a defrag.  I tried the free sample of the full Malwarebytes version and it drove me nuts

 

saying I was bombarded by malicious sites trying to invade my computer.  They find mostly

 

adware programs that get deleted in the weekly scans.  I also go to "Run" and type in msconfig, 

 

going to the start up menu to disable any program you don't want staring up with Windows.

Share this post


Link to post
Share on other sites

Thanks Rich,

I just reinstalled the free version and already found 46 items. I guess it could casuse a few "burps" while flying if it is running behind the scenes. 

Ron I guess if you had the free version you would have more control?  By the way if I had behaved myself when I was much younger I wouldn't have kill so many of my brain cells and could be smart enought to fix your problem. (lol)

 

Yikes 46 - I have never seen anything close to that maybe 2 or 3 - keep that on your pc - take care Carl

Share this post


Link to post
Share on other sites

That sounds like an answer! The trouble is I go a bit all unnecessary when I hear the words 'batch file'.

 

Ron, this is the batch file I use to start FSX:

 

 

@echo off

cls

echo.

echo.

echo     [1] - Start FSX

echo     [2] - Start FSX with FSXWX

echo     [3] - Start FSX with RemoteFlight Server

echo     [4] - Start FSX with FSXWX and RemoteFlight Server

echo     [5] - Start Ideal Flight

echo     [6] - Exit without doing anything

echo.

 

set /p selection=

 

MIN

 

if %selection%==1 goto fsx

if %selection%==2 goto wx

if %selection%==3 goto rf

if %selection%==4 goto everything

if %selection%==5 goto ideal

exit

 

:everything

rem start RemoteFlight Server

cd /D "E:\Program Files (x86)\Utilities\"

start RemoteFlightServer.exe

timeout /t 5

 

:wx

rem start FSXWX

cd /D "E:\FSX Aircraft\"

start FSXWX.exe

 

goto fsx

 

:rf

rem start RemoteFlight Server

cd /D "E:\Program Files (x86)\Utilities\"

start RemoteFlightServer.exe

timeout /t 5

 

:fsx

rem start FSX

 

taskkill /fi "STATUS eq RUNNING" /im outlook.exe

taskkill /fi "STATUS eq RUNNING" /im firefox.exe

timeout /t 3

 

cd /D "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\"

start /wait fsx.exe

 

taskkill /fi "STATUS eq RUNNING" /im FSXWX.exe

cd /D "C:\Program Files (x86)\Microsoft Office\Office14\"

start OUTLOOK.EXE

exit

 

:ideal

rem start Ideal Flight

 

MIN

 

taskkill /fi "STATUS eq RUNNING" /im outlook.exe

taskkill /fi "STATUS eq RUNNING" /im firefox.exe

timeout /t 3

 

cd /D "E:\FSX Aircraft\"

start FSXWX.exe

 

cd /D "C:\Program Files (x86)\Ideal Flight 10\"

start /wait iflight10.exe

 

exit

 

 

 

The MIN command minimises the command window but is not built into Windows. You can download it free (with some other useful utilities) as part of cmdutils.zip from http://www.paulsadowski.com/wsh/cmdprogs.htm. You should extract MIN.exe and put it somewhere in the Windows path - I put it in C:\Windows\system32.

 

The start command starts the selected programs, taskkill looks to see if a program is running and, if so, shuts it down. The wait command before fsx.exe waits for FSX to close and then continues with the batch file to restart software (you can start/restart as much or as little as you like). Some of the timeouts are to let the programs start properly before moving on.

 

Cut & paste the text above from @echo off to the final exit command into notepad (or some other suitable editor) and tweak the paths and programs you want to use. You need to think carefully about the order in which you place the entries to start and stop programs to keep the batch file logical. When you're happy, save it as something like fsxstart.bat. Run the batch file as an administrator and it should then avoid most hiccups in Windows. I have used some bits of batch files posted by other people (but can't remember their names - my apologies to them) and added bits to streamline the process a little. Hope this gives you some ideas. Let me know if you have any questions.

 

PS - I have the paid version of Malwarebytes which runs in the background when I use FSX and have yet to notice any problems with it.

Share this post


Link to post
Share on other sites

Vortex, I really do appreciate the trouble you've gone to, but I'm only 2 days into my course on Sanskrit!  :blush:  To be honest I've never found any specific problem with it either. This started out as a 'I wonder if that'll make a difference' kinda thing.

I'm happy enough to turn it off and switch it on as required. That's all.

Ron

Share this post


Link to post
Share on other sites

Vortex, I really do appreciate the trouble you've gone to, but I'm only 2 days into my course on Sanskrit!  :blush:  To be honest I've never found any specific problem with it either. This started out as a 'I wonder if that'll make a difference' kinda thing.

I'm happy enough to turn it off and switch it on as required. That's all.

Ron

 

Maybe it will be of use to someone else. It's my solution to being to old to remember to stop and start things!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this