Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Hide dos window

  • 23-11-2005 2:30pm
    #1
    Registered Users, Registered Users 2 Posts: 7,541 ✭✭✭


    I'm sure there's a simple solution to this just can't figure it out myself.

    I have a batch file that runs a couple of dos commands. This batch file is set to run every 10 mins using Task Scheduler.

    When it runs, a DOS command window opens up on the screen, the commands are run and the window disappears. However it annoys me how it appears in the middle of the screen right when I'm doing something critical.

    How do I set it to run minimized in the taskbar? (Win XP Pro)

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
    [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
    [/WAIT] [/B] [command/program]
    [parameters]

    ..
    B Start application without creating a new window. The
    application has ^C handling ignored. Unless the application
    enables ^C processing, ^Break is the only way to interrupt
    the application
    ..
    MIN Start window minimized
    ..

    from start /?


  • Registered Users, Registered Users 2 Posts: 7,541 ✭✭✭irlrobins


    mmm i think that only works from command prompt. I need the task scheduler to start the window minimised.


  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    *shrug* i figured a call at the very start would do it.

    Otherwise, create a shortcut/.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.

    What happens when you're setting up the task, to RUN AS: NT AUTHORITY\SYSTEM ? (Isn't there a Minimized option also?)


  • Registered Users, Registered Users 2 Posts: 7,541 ✭✭✭irlrobins


    Good stuff, that seems to work. I tried that before but I think where I was going wrong was selecting the .lnk file cos what it does is actaully run the file linked to by the shortcut and not the shortcut itself. Typing it in manually sorts this.

    Cheers!!


  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    g'luck.


  • Advertisement
Advertisement