Quote:
duo
$inifile="C:\Documents and Settings\duo\Desktop\newlogscript\sample.ini"

This is a configuration file, and placing it in the user folder is probably not a good idea, whether hard coded or not. If this is a config file for the login script, it should probably be referenced as \\%USERDOMAIN%\netlogon\%USERID%.ini

Every one of our systems has a specific place for scripts, and another for common (shared) configuration files. These are defined by Environment Variables S_BIN and S_CONFIG. This way, one script knows where other scripts are found, and always knows where to find local config files.

Just another way to skin the (mmrrrrroOOOWWWWWW) cat!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D