Skip to main content
GameDev.net gamedev.net
🔒 Locked

Startup batches in Win32 (VCVARS32.BAT)

Started by uutee Dec 8, 2006 at 9:13 PM 0 replies 1.5k views
Original Post
uutee
uutee
Hi, In the past, startup scripts could be run on Windows/MS-DOS computers by calling them from AUTOEXEC.BAT. However, modern Windowses don't seem to support that mechanism anymore. I'm mostly considered about the VCVARS32.BAT used in Microsoft's compiler environment. I use command line a lot, and thus I'm really interested whether it's possible to have the .BAT launched once at startup, as opposed to each time when command prompt is run. Thanks, - Mikko
StratBoy61
StratBoy61
Hello uutee,

I assume that it is possible using the notion of Windows services. They kinda replace that autoexec.bat actually, and they let you load programs at start up.
It seems that SC.EXE is the program that lets you create a new service. Might be worth giving a try, even though I am not sure of the result with environment variables...
Also, you can set them once and for all, through "System Properties | Advanced | Environment Variables".

Cheers,
StratBoy61

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.