Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: remote system variables  (Read 5507 times)

0 Members and 1 Guest are viewing this topic.

viking

    Topic Starter


    Adviser
  • miaow-miaow 2.0 for networks
  • Thanked: 1
    remote system variables
    « on: February 10, 2005, 11:08:11 AM »
    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?
    « Last Edit: February 10, 2005, 11:09:02 AM by viking »

    gussery

    • Guest
    Re: remote system variables
    « Reply #1 on: February 10, 2005, 03:12:57 PM »
    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.