Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Hatsukaichi, Hiroshima, Japan
    Posts
    904
    Thanks
    0
    Thanked 0 Times in 0 Posts

    bat files in startup menu (Pro)

    Does anyone know how to get a bat file to work at startup? I tried placing a shortcut to a bat file first in my user account startup folder and then in the all-users startup folder but neither seemed to work. What have I missed?

    Thanks,

    Chris

    PS I've got a two day meeting ahead of me so I won't be able to check the lounge until Monday (Japan time). I hope I don't get withdrawal symptoms.

  2. #2
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: bat files in startup menu (Pro)

    A batch file (or a link to one) should work OK from your Startup folder. The following:
    @echo off
    echo startup test
    pause
    pops up a cmd window with a message, and closes it after a keypress. Most commands should work as per normal. SET commands are effective only while the batch file is running.

    If you want to set environment variables at startup, you can do it via AUTOEXEC.BAT. To do so you need to check the "Parse Autoexec.bat at logon" box in TweakUI's Logon settings. Other commands in AUTOEXEC seem to be ignored.

    If you're trying to control the sequence of execution for your startup items MS knows best. I expect there would be utilities that you could provide with a list of items, that would then be executed in sequence. Or, you could try to cook up your own with something like AutoIt.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

Posting Permissions

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