Thanks for input, DDavidson and Bryce!

I've tried what you suggested, drive mapping works fine after I put "" in.

I've put kix32.exe, kx16.dll, kx32.dll and kx95.dll in Windows directory also in PDC/BDCs systems directory but the script ran the same as before.

I also tried to run the script in debug mode, no error was found and the script logic seem ran smooth. The only problem is Windows 9x cannot identify my group (both Local/Global group) membership hence the @ingroup function always return false. I believe there is something wrong in KXRPC, it was installed and started however no @fullname, @ldrive or @lserver, etc. information can be retrieved in Win9x environment.

I followed the manual step by step, copied kxrpc.exe into the PDC and BDCs. Start them well and set environmental variable in to those server in Win9x workstation's Autoexec.bat but nothing help.

Any way I can check if my KXRPC is running properly?