1.

Solve : remote system variables?

Answer»

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?You would need to use a VBSCRIPT to access %username% into a variable and then build your copy string and EXECUTE it inside the script.





Discussion

No Comment Found