Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Bat file at startup

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
0
0
US
Hi All,

I am working on XP I have my own logon on it. My login can be used by some others too. When I set some Environment variables, others who use this system are deleting the variables I set. I want to save all the env settings in a bat file and I want my Bat file to run on start of the XP. That means when I start my windows XP it has to run the bat file and make Env variables available to all the applications.

Thanks in advanse.

Regards,

Swaroop.
 
Why dont you set up a new acount on your pc for the other users. this way they can do there own thing and not screw yours up

Friedy
 
Set your bat file as a startup script in the local computer policy.

Click Start, Run
Type MMC <enter>
Click File
Select Add/Remove Snap In
Click Add
Select Group Policy, click add
Click Finish, Close OK

Navigate to Computer configuration/ Admin templates/Windows Settings/Scripts

Double click Startup Scripts. Click Show files. Put you file in there. Close the File window. Click Add and select your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top