free log
CRM

Bozteck VNCScan Community

Community makes things happen
Welcome to Bozteck VNCScan Community Sign in | Join | Help
in
Home Forums

Trying to copy some files to a users profile with remote script.

Last post 09-19-2007, 1:24 PM by SuprSurfr. 0 replies.
Sort Posts: Previous Next
  •  09-19-2007, 1:24 PM 2121

    Trying to copy some files to a users profile with remote script.

    Here is my script:

    c:

    cd \temp\vncscan

    set /p NAME=Enter User ID:

    copy APPSRV.INI "C:\Documents and Settings\%NAME%\Application Data\ICAClient\"

    copy pn.ini "C:\Documents and Settings\%NAME%\Application Data\ICAClient"

    copy WFCLIENT.INI "C:\Documents and Settings\%NAME%\Application Data\ICAClient\"

    copy MODULE.INI "C:\Program Files\Citrix\ICA Client\"

    I used the "set /p NAME=" to prompt for the login ID so that it should copy the files to the users profile, but for some reason it doesnt work.  I have tried using the default %USERNAME% variable first but that didnt work either.  It would try to copy the files to the Administrators account no matter who was logged into the remote PC.

    I added pauses to it so I could see where it was failing but it doesnt pause.

    Any help would be much appreciated.

     

    Thanks

     

     

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems