I need a solution
Hi, I have a situation wherein I need to copy the information from a logged in user to and end destination where the destination needs to have a directory which is equal to the logged in user id. At this stage I'm using %USERPROFILE% which provides me with the path to the users profile, e.g. c:\documents and settings\testuser\...
I need either to find a token which can provide me the current logged in user OR a script to take it out of the %USERPROFILE% result and use it elsewhere. Like such:
xcopy /e/c/d/h/y "%userprofile%\Desktop\*.*" "\\serverpath\%CURRENTLOGGEDONUSER%\Home\Desktop\"
Any help would be appreciated!
7771341