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: Scheduled task message popping up in background ...

11 Aug 2011   #1
ashleyquick

windows 7
 
 
Scheduled task message popping up in background ...

Using the method in this post ...

Writer I Am: Creating an Hourly Reminder in Windows

Why is the message displaying under current windows? Is there a way to force it to the front?

Thanks,
Ashley


My System SpecsSystem Spec
.
12 Aug 2011   #2
Dwarf

Windows 8.1 Pro RTM x64
 
 

There is a way, and that is to display the message using a batch file. For your question above, the code will be as follows:

Code:
@echo off
echo Stand up, stretch, move, walk around
pause
Save this simple file as a batch file with the extension .bat. Give it a suitable name. The pause command holds the display, so that you have to click on it to dismiss it.

Now, follow the instructions in the link you provided and, instead of selecting the option to Display a message, choose Start a program. In the screen that follows (see below for an example) browse to the location of the batch file you created and then click OK.

Scheduled task message popping up in background ...-capture.png


My System SpecsSystem Spec
12 Aug 2011   #3
ashleyquick

windows 7
 
 

Works great with one minor issue. Is it possible to place focus on the cmd window? It pops up in front of everything else but you must click on it before you can "press any key to continue".
My System SpecsSystem Spec
.

12 Aug 2011   #4
Dwarf

Windows 8.1 Pro RTM x64
 
 

I've had another look at this, and the solution is deceptively simple. It doesn't involve a batch file, rather you need to use vbScript.

Code:
MsgBox "Stand up, stretch, move, walk around.", vbSystemModal
Save this simple file as a vbscript file with the extension .vbs. Give it a suitable name. Again follow the instructions in the link you provided and, instead of selecting the option to Display a message, choose Start a program. In the screen that follows (see my post above) browse to the location of the vbscript file you created and then click OK.
My System SpecsSystem Spec
12 Aug 2011   #5
ashleyquick

windows 7
 
 

Quote   Quote: Originally Posted by Dwarf View Post
I've had another look at this, and the solution is deceptively simple. It doesn't involve a batch file, rather you need to use vbScript.

Code:
MsgBox "Stand up, stretch, move, walk around.", vbSystemModal
Save this simple file as a vbscript file with the extension .vbs. Give it a suitable name. Again follow the instructions in the link you provided and, instead of selecting the option to Display a message, choose Start a program. In the screen that follows (see my post above) browse to the location of the vbscript file you created and then click OK.
Perfect! Thank you immensely!!
My System SpecsSystem Spec
13 Aug 2011   #6
Dwarf

Windows 8.1 Pro RTM x64
 
 

You're welcome.
My System SpecsSystem Spec
Reply

 Scheduled task message popping up in background ...




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Scheduled Task: Configure for? - Help please.
Hi, I've decided to create a scheduled task to clean up after windows updates. I've created the task and scheduled it to run every second Saturday of every month (to make sure that it only runs a few days after patch Tuesday). My problem is that I don't understand the "Configure for"...
Performance & Maintenance
Scheduled Task history indicates task completed successfully but....
Hi, New here. I'm using a Scheduled Task to fire a very simple bat file that pulls, compresses and pushes a set of files to a different network directory. The bat file runs fine manually. On a networked desktop I have set up the task to run at about 5am est (waking the machine), as highest...
Performance & Maintenance
setting up a scheduled task
I am trying to use the free program FreeFileSync to do a nightly back up of some files and have had some trouble setting up the job. The syntax for the job would be "FreeFileSync myjob.batch" run from the utilities location. I set the trigger to 2am each day, with the action to start the program...
General Discussion
Edit a scheduled task
I want to edit a scheduled task but canít identify which one due to their mysterious names. How can I determine the right one?
General Discussion
Scheduled Task not running
Scheduled Task not running when "run whether user is logged on or not" option is selected? Is this an issue/bug in windows 7?
General Discussion
Scheduled Task revisit...
I installed Windows 7 Ultimate in Dec'09. I download stuff from torrent sites and since my ISP allows free downloads from 2 am to 8 am, i normally schedule my downloads for that time slot. I had been using Freebyte Task Scheduler for the purpose and it was set to run Azureus.exe file at 2.05 am....
General Discussion


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 23:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App