Hi
I want to copy a file to a users c:\Documents & Settings\USER'S FOLDER\Etc... in the logon script.
Using %USERNAME% works well until there's a user that already existed locally on the computer before it was added to the domain. In this case, the docs & settings folder contains a username.domain folder, rather than just simply username.
This is how the copy command is at the moment:
Is there a %users docs & settings folder% command?
Thanks
I want to copy a file to a users c:\Documents & Settings\USER'S FOLDER\Etc... in the logon script.
Using %USERNAME% works well until there's a user that already existed locally on the computer before it was added to the domain. In this case, the docs & settings folder contains a username.domain folder, rather than just simply username.
This is how the copy command is at the moment:
Code:
xcopy /d /y "sourcefile" "C:\Documents and Settings\%USERNAME%\Application Data\Microsoft\Word\STARTUP\"
Thanks