Gang:I'd be VERY careful with one's syntax - especially when writing directly to WORKSTATION user profiles !
This is just a heads-up for everyone in the future !
Here's the scenario ...
1) New NT user account is created in user manager
2) User logs into workstation for first time
3) NT creates workstation profile called c:\winnt\profiles\@userid
4) Scripts are written that reference c:\winnt\profiles\@userid
5) For some reason - user account gets corrupt - (happens with roaming profiles)
6) User account gets deleted from user manager
7) User account is re-created with same name as previous
8) User logs back into workstation with new account
9) NT finds cached version of old account - but SIDS are different
10) NT creates new workstation profile with @userid.000
11) Script no longer works !
Been there - done that !
I always reference workstation profiles with the following...
%userprofile%\desktop
Guaranteed to work every time !
Shawn.
[This message has been edited by Shawn (edited 19 May 2000).]