OOOPPSS!!.. I brush up my script one more time and yes, always-small details count a lot…editing the post and properly indent the script code.
To respond to everyone:
1.-yes I agree with /delete and /persistent and I'll make the changes right away.
2.-the entire logon script was running ok, but mapping was always skipped and logon was completed with no error messages. They are successfully logged on to domain and if you try to map the drives, mapping is successfully done.
3.-my progress bar function is part of the script and basically gives you an idea of how the logon script progress until is done.
OK. So I realized that I had in my script a line here is the code:
Code:
If InGroup("mech_USR") = 1
Use LPT2: "\\anyserver\mech_LASER" /PERSISTENT
If AddPrinterConnection ("\\anyserver\mech_LASER") = 0
SetDefaultPrinter ("\\anyserver\mech_LASER")
$LABELSTATUS.TEXT = "Mech_laser default on LPT2 ..."
EndIf
IF Addprinterconection () with no ENDIF
. I made the changes and now the mapping it is working fine
.
I posted so many details just in case somebody has the same or similar problem..
Thanks Howard, Sealeopard, and Les for you help and advice. No so confused any more!
Edited by Prs01blu (2004-07-30 03:06 PM)