Rod's DOS Batch file tricks

NT Login Script Tricks:

Set the workstation time to a Domain Controllers time each logon.

Map a network Drive and delete an old static mapping from a login script:

Discover USERNAME variable on 9x systems for login.

Call another .bat file from your login script

Do you want to run a special line or two of code inside your batch file for a specific user? Then try this coding.

Run registry files in a batch file

Other cool sites with good info

Make Home directories for many users with 1 batch file (uses DOS Parsing)

*** I have a batch script written that will calculate the users account expiration date of a Windows 2000 AD account and pop-up a warning box if the expiration date is less than 30 days from %today% while the user is logging on. If you would like a complete copy of  it send me an email. webmaster@rodharrison.com Here is the batch file text, but you will still need two executables. Email me for them.

 

Did this info help you? If so, email me and let me know about it or ask a question.