Computer Hope

Software => Computer programming => Topic started by: Xeratul on February 20, 2006, 08:50:13 PM

Title: Batch Scripting/Creating a Logon Script
Post by: Xeratul on February 20, 2006, 08:50:13 PM
I'm fairly new to batch scripting, and
I've seen Batch File logon scripts that run immediately after a user logs on to his/her account. I know these scripts can be used to connect to network drives and such like below...

Code: [Select]
net use R: \\officeserver\shared
net use P: \\officeserver\apps
and my question is how do they get this file to run immediately after logon?  
Title: Re: Batch Scripting/Creating a Logon Script
Post by: Sidewinder on February 21, 2006, 09:50:00 AM
For a single workstation, try putting the login script in the "c:\documents and setttings\all users\start menu\programs\startup" folder. The script will run no matter who signs on.

On a domain network, the script runs from the server. The network administrator needs to set this up.

Hope this helps. 8-)
Title: Re: Batch Scripting/Creating a Logon Script
Post by: Xeratul on February 21, 2006, 04:21:36 PM
  :D Thanks, this was exactly what I was looking for.