Results 1 to 8 of 8
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Run Schedule Task Minimized (XP)

    I have several scheduled tasks running batch files throughout the day and would like to have them run minimized. Is there a setting to run minimized? I may have overlooked it.

    Thanks,
    John

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Run Schedule Task Minimized (XP)

    This isn't a complete answer, since the BATch file window will pop up, then disappear, but you could try putting Ritchie Lawrence's CMDOW utility at the top of each BATch file, the syntax being
    CMDOW @ /MIN

    The other way has its own complications, but have something START each BATch file with the /MIN option...
    START "" /MIN yourBATchfile

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Schedule Task Minimized (XP)

    John,

    I opted for the other way; using START "" /MIN

    This works just fine but does not close the window after executing the BATch file. In reading up on the START command features I would expect START "" /MIN /C to run in a minimized window and close after the execution of the BATch file.

    If I include the "/C" nothing happens without it the BATch file is executed but the window remains minimized.

    Thanks,
    John

  4. #4
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Run Schedule Task Minimized (XP)

    John

    Did you try sticking EXIT as the last executable command in the BATch file you STARTed?

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  5. #5
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Schedule Task Minimized (XP)

    John,

    I do have the EXIT as the last line in the file.

    I'm wondering if it needs a WAIT statement.

    John

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Run Schedule Task Minimized (XP)

    John

    I suppose you could do a 5-second wait using PING -n 6 127.0.0.1 > NUL just before the EXIT. Or do you mean the START /WAIT option?

    Have you tried adding or removing the /B option?

    Newsgroups show that this question (or similar ones) has been asked, but I haven't seen a good answer...!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Schedule Task Minimized (XP)

    John,

    I was thinking more in line with START /WAIT but I am not sure if there is such a thing.

    I was not using the /B switch.

    John

  8. #8
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Run Schedule Task Minimized (XP)

    START /? tells you!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •