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

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

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

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

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

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

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




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 11:20 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33