Console output window shown by task scheduler


  1. Posts : 3
    Windows 7 x64
       #1

    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 Computer


  2. Posts : 6,885
    Windows 7 Ultimate x64, Mint 9
       #2

    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 Computer


  3. Posts : 3
    Windows 7 x64
    Thread Starter
       #3

    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 Computer


  4. Posts : 302
    Windows 7 RTM x64
       #4

    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 Computer


  5. Posts : 6,885
    Windows 7 Ultimate x64, Mint 9
       #5

    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 Computer


  6. Posts : 3
    Windows 7 x64
    Thread Starter
       #6

    robertoszwald said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:22.
Find Us