Execute A Batch File(or Any Other Program)


Recommended Posts

Guest fbelzile

First make sure the program it self dosn't have this feture in the Options, this will save you lots of time and effort.

If it doesn't, to make it start-up on log-in, all you have to do is copy the batch file into the User's start-up folder located here:

For Single User:

C:\Documents and Settings\**Username**\Start Menu\Programs\Startup

For all users:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Hopes this helps :P

Link to post
Share on other sites
Guest fbelzile

Mmmm, tough one...

When you tell Windows you want to shutdown, it tries to close all programs running to do so. This means, if you try to run an application when Windows is shutting down, the OS will stop it and continue shutting down.

I saw some applications make it possible, but with Windows XP by itself... Not possible.

You can however, make a program run when the computer is idle.

Link to post
Share on other sites

there are a couple ways to do it I think.

There is a logoff script in windows,

you can edit it under the group policy snap-in the Microsoft Management Console (start run MMC, add group policy as a snap-in to console root). Under windows settings in there you've got scripts log on and log off.

You should be able to invoke bat files and I think .vbs files from those. But I've never actually done that.

There's also the option of running your own file when you want to log off and after the backup utilities / everything you want to run is finished, call a shutdown utility like PsShutDown (I think XP has something like this built in, for 2000 you need the resource kit or a 3rd party utlility like that)

It's not as intuitive as clicking shutdown and having windows do it for you, but it should work all the same.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...