Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How To Close (But Not Force Close) Program Automatically On A Schedule

21 Jul 2013   #1
wokaka

windows 7
 
 
How To Close (But Not Force Close) Program Automatically On A Schedule

not sure if it's possible in Task Scheduler but i really want it to work. Basically I know how to automatically start program in Task Scheduler and how to also force close it. If we want to force close it we just create a .bat file with text like
Code:
TASKKILL /F /IM "nameofprogram.exe"
and schedule to run such file in specific time (for example 2.00.05 PM)

but this doesnt solve my issue because I need to automatically close my program without actually force close it. The above solution only force close the program and it's not what I want. I want to "properly" shut down the app, something like we click "X" in the program manually. Is that possible?

The problem is because I trade in MT4 automatically. if I use the above solution to close it on schedule, when it reopen, any change made to the object list in the MT4 would be deleted as if nothing ever added there. That's why I need a solution to automatically close my MT4 on schedule but not force close it. Any idea guys?


My System SpecsSystem Spec
.

21 Jul 2013   #2
wokaka

windows 7
 
 

hi guys, after try to find more solution on Google apparently there's a very easy fix!

I should have not used the "/F". it force close the program!

should just go directly TASKILL /IM "nameofprogram.exe"

LOL
My System SpecsSystem Spec
Reply

 How To Close (But Not Force Close) Program Automatically On A Schedule




Thread Tools





Similar help and support threads
Thread Forum
How to schedule programs to start/close automatically
I want to have my Computer automatically start at 9pm, have utorrent start and run til midnight, then, at midnight, have steam start and run til 6am and have my computer shutdown then, so just to recap: 9PM Computer Start, Utorrent Starts 12AM Utorrent Closes, Steam Starts 6AM Computer Shutdown
General Discussion
Programs active after force close (hold power for 5 secs) won't work!
I was in a rush to shut down my laptop so while windows was shutting down i held the power button for 5 secs to shut it down faster (I know, I'm so stupid!). But now programs that were still active at time of shutdown refuse to work. Some of these are office 2010 starter & Windows Installer...
General Discussion
When Task Manager can't force a program to close, what then please?
Hello I have been trying to open Picasa for a couple of hours now - it no longer responds when double-clicked in 'my programs', or if I right click and choose 'open' No other programs are affected and everything else works as it should. By Googling I've discovered that the program is...
General Discussion
Chrome.exe force close could not be completed.
I'm installing some adobe software, which, for some reason, requires chrome to close. When I close chrome.exe, I get this error: http://i.imgur.com/eXkvV.png This only happens to the main chrome.exe process, not the browser, extensions, etc. I've tried restarting my computer, but it...
Browsers & Mail
Is normal start menu close automatically after 1 min?
when I click on start menu and dont move the mouse after 1 minute is disappear the start menu. this normal.?
General Discussion
Program to automatically close and open other programs?
When I'm running on battery power, I'd like to be able to close certain programs to save power (e.g. that send a smile/frown thing for MS Office 2010 beta, Skype, MSN, my dictionary program etc), but instead of closing them one by one, which is a bit of a kerfuffle, I'd like to able to do it with a...
Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App