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: Console output window shown by task scheduler

02 Jul 2009   #1
trojahnm

Windows 7 x64
 
 
Console output window shown by task scheduler

Hello...

I had a task (a php script) running periodically on Windows Vista to change my network routes automatically (because OSPF support have been dropped by MS) and it was working fine...

Now I am trying to run the very same script on a Windows 7 system... It runs fine, but on every run it opens a 'console' window to show the script output... This behavior didn't happen on Vista...

I've tried to make a shortcut of php.exe and make it run minimized, altering the task to run the shortcut instead of the executable... Didn't work...

I don't see anywhere a place to suppress this output window... Can this be done?

Thanks in advance.


My System SpecsSystem Spec
.
02 Jul 2009   #2
Lordbob75

Windows 7 Ultimate x64, Mint 9
 
 

If you know how to edit the script, go into it and, if needed, put in something that stops the output. I don't know how to do it, but I imagine that there is a way.

~Lordbob
My System SpecsSystem Spec
02 Jul 2009   #3
trojahnm

Windows 7 x64
 
 

Sorry, as I mentioned, the problem isn't the script output... It used to run exactly like this on Vista...

The console window pops up when the script is run, the actual output (if any) is show far back in the script execution... Even if there's no output from the script the black and empty console window is still shown...
My System SpecsSystem Spec
.

02 Jul 2009   #4
Robert Cartman

Windows 7 RTM x64
 
 

With AutoIt you can catch that window right after it opens and close it!
Not the best solution I know.

AutoIt v3 - Automate and Script Windows Tasks - For Free!
My System SpecsSystem Spec
02 Jul 2009   #5
Lordbob75

Windows 7 Ultimate x64, Mint 9
 
 

Interesting........ I have no idea then....

Maybe they changed some default setting with Seven. It might make a difference if you put something in the script to stop the console.

~Lordbob
My System SpecsSystem Spec
02 Jul 2009   #6
trojahnm

Windows 7 x64
 
 

Quote   Quote: Originally Posted by robertoszwald View Post
With AutoIt you can catch that window right after it opens and close it!
Not the best solution I know.

AutoIt v3 - Automate and Script Windows Tasks - For Free!
I'll check it out... Thanks!

And thanks too Lordbob75... If I can't make it run the way I want I'm thinking about coding a windowless WPF app... Maybe that's the way to go
My System SpecsSystem Spec
Reply

 Console output window shown by task scheduler




Thread Tools




Similar help and support threads
Thread Forum
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Tutorials
Task Scheduler - Log Files, Output, etc.
Hi guys and gals, I'm trying to accomplish something at work and need some help. Here is the situation: 1) There is a scheduled task setup to run an 'import' for my companies software. This task runs a .bat file which runs a program with a few switches (application 1). I have edited the...
General Discussion
Tip to bypass UAC prompt w/ Task Scheduler AND focus the window
Just wanted to pass on this tip I found since it was hard to come by (only saw it in on one site). Many of us know the trick about creating a shortcut with administrator privileges through the Task Scheduler to get around the UAC prompt....
Customization
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
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 13:30.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App