Solved

How does windows scheduled task work?

Posted on 2008-10-06
4
197 Views
Last Modified: 2012-05-05
More specifically, I'd like to know what happens when a scheduled .bat file is run. Does it pop up on the system as double-clicking or does it run in the background?
What if it's invoked by some other process?
0
Comment
Question by:nopopo
  • 3
4 Comments
 
LVL 1

Expert Comment

by:fragopi
ID: 22657905
nopopo,

As far as schedulling the batch goes, here is how you would do it:

1. create you batch file
2. create a shortcut to you batch file (put it in the same folder as your batch)
3. right click on the shortcut you created and click in properties. The short cut window editor will be displayed. In the tab "Shortcut" change the Run field to Minimized (this is what does the trick)
4 create your task schedule for your batch.
5. after the task is created, right click on the task and click properties. The task window editor will be displayed
6. In the "Task" tab change the Run field to use the batch shortcut (use the full path to the shortucut)

That is it for the batch.

As far as being invoked by another process, it will depend on "what" this other process means.

If the batch file you scheduled (the way describe above) calls a 2nd batch file, the second batch file will be 'hidden' too.

If it is an application you developed, yes you can do it, but the actual implementation will depend on the language you use for developement.

Hope this helps.
0
 

Author Comment

by:nopopo
ID: 22660106
Hi fragopi,
Thanks.
By default, does scheduled task come out hidden or visible as a dialog?
By default, can I see the process in the task manager?
Thanks
0
 
LVL 1

Accepted Solution

by:
fragopi earned 500 total points
ID: 22667924
Hi nopopo,

1- now window for the task scheduler is displayed when the task run
2 - yes the process can be seen in the task manager

0
 
LVL 1

Expert Comment

by:fragopi
ID: 22667928
My apologies, in my last post I meant

1. NO window....
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question