I try to copy something (for example an txt file, an excel file) on every desktop of the curent logged in user in Windows 2000 and Windows XP, in a Windows 2000 domain. How can I access their username remotely? I want to make a batch file, in which I should write:
copy c:\source.file "\\compDestination\documents and settings\%username%\desktop\"
But if I write that way, it won't work, because it replaces %username% with the username of the current logged user on the computer where that bat is launched.
Soooooooooooooo....
Help
:-/
Other ways than that I choosed?