how to run script at user login ?

  • Thread starter Thread starter bill allemann
  • Start date Start date
B

bill allemann

a WinXP Pro workstation is on a small peer to peer LAN and I want to
run a batch file at either bootup or at a particular user login to
do a "net use" command that I put in a bat file. The help file at the user
profile screen
seems to be all about logging onto a domain, and I haven't found a way to
cause the bat file to be read there during login. I also tried putting the
commands
into C:\Autoexec.bat but it didn't seem as though that file was read on
bootup either.
This was pretty easy stuff on older win versions, but I don't have too
much experience with XP. It seems like most of the config work has
been made much more difficult.

Any help would be appreciated.
Thanks
Bill
 
Put the batch file in the users startup folder
C:\Documents and Settings\username\Start Menu\Programs\Startup
This will run at logon

Or you can set them in the registry in the Run Keys
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

The machiine keys get run a boot time, the user keys at logon

Regards
Mark Dormer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top