?
Solved

size and location of Scheduled Tasks pop-up windows

Posted on 2008-01-24
4
Medium Priority
?
1,281 Views
Last Modified: 2008-04-07
Hi:

I've scheduled some batch files to be run by Scheduled Tasks. It's quite annoying that when those batch files are kicked off and run, some are once every 5 minutes, command line windows pop up and disappear. Is there anyway to disable these windows or at least control their position and size? Thanks.
0
Comment
Question by:sdc248
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:GregMoseley
ID: 20736531
You're not alone, but someone seems to have the answer

http://ask.metafilter.com/18994/Windows-Batch-File-Run-Minimized
0
 

Author Comment

by:sdc248
ID: 20738710
Hi GregMoseley:

My company blocks this web page. Could you copy and paste the content?
0
 
LVL 5

Accepted Solution

by:
GregMoseley earned 1000 total points
ID: 20738860

Windows Batch File - Run Minimized?
May 22, 2005 3:43 AM    Subscribe
I've a batch file for automatically uploading a file from my computer to my webspace. The batch file does it's job perfectly but I'm having problems automating the running of the batch file. I've set up a scheduled task to run the file but the problem is that even with the batch file settings changed to 'Run Minimized' the scheduled task still runs maximised and takes over my whole screen. Since I have the file set to run every 10 minutes this is a problem. Anybody have any solutions?
posted by daveirl to computers & internet (5 comments total) 
Create a shortcut to the batch file, set the screen settings in there, schedule the shortcut.
posted by krisjohn at 5:15 AM on May 22 
 
 
 
I thought that would work but it doesn't appear to. I think the scheduled tasks just 'sees through' the shortcut to the batch file it's pointing to.
posted by daveirl at 5:25 AM on May 22 
 
 
 
The scheduled task "sees through" the shortcut if you create it using "Browse". If you edit your task to point to the actual shortcut, which ends in ".lnk", then it'll work.
 
The ".lnk" part of the shortcut's name is hidden by the window manager, but if your file is "test.bat", your shortcut would be called something like "Shortcut to test.bat.lnk"
 
More here:
 
"I got it to work. Simply create a shortcut to the bat file in the same directory which will create a .lnk file. Go to the properties of the lnk file and set it to run minimized. Then, go to the scheduled task and manually enter the path+file name of the .lnk file.
 
If you click browse to search for the lnk file, it wont work."
posted by Turtle at 6:06 AM on May 22 

Open in new window

0
 

Author Comment

by:sdc248
ID: 20744259
It works. Thanks a lot.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

599 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