Solved

How does windows scheduled task work?

Posted on 2008-10-06
4
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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