
Win95 client wont run logon script..
I don't have a C compiler. If you do and you want to fix it feel free. I'll post it.
Clarence
Check it out..
http://www.*-*-*.com/
On this site you will find resources for all of your scripting needs. Everything you need to get up and running. Over 100 Sample Scripts, ActiveX controls, reference materials, and technical support via an online discussion lounge.
[ Win32Scripting... automate!! ]
Re LOGON.EXE not working with Win95 clients...
Quote:
>I don't know..... This has puzzled me as well. Why don't you contact the =
>code maintainer. His email address is in the readme that shipped with =
>the distribution.
"Use the Source, Luke..."
Here's how LOGON.EXE locates the script passed in the command line:
logonserver = getenv( "LOGONSERVER" );
strcat( scriptpath, logonserver );
strcat( scriptpath, "\\NETLOGON\\" );
strcat( scriptpath, argv[1] );
.. after which scriptpath has the full pathname of the script. Or not...
Maybe Win95 clients don't get a LOGONSERVER variable during login? (For that
matter, neither do NT 3.x or NT4 SP2 and earlier, according to article Q141714
in the MS KB.) That would yield a path of \NETLOGON\foo.wsh which will most
likely be incorrect for your system.
As a workaround, you could probably replace the LOGONSERVER reference with
some code to fetch the name of your primary domain controller... or maybe
just s{*filter*}the path-building code and depend on the fact that LOGON.EXE's
current directory would be {LOGONSERVER}\NETLOGON or its m{*filter*}equivalent
(Z:\ or whatever); that way you could either use a {*filter*} filename and depend
on finding it in NETLOGON, or just pass a full UNC or pathname.
+-----------------------+----------------------------------------------------
|Don Piven - Chicago IL | Suburbs are places where they cut down the trees,
| '97 Waterford 1900 |
+-----------------------+ [Alfred E. Neuman]