Solved

How does windows scheduled task work?

Posted on 2008-10-06
4
196 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

786 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