Hi, this is me
!
I've a little strange problem using %userprofile% and %appdata% environment variable in a Batch script (.bat). The script is local, and must be executed on a remote computer :
@echo off
echo Userprofile : %userprofile%
echo AppData : %appdata%
This script is necessary to cpy shortcuts (.lnk) in he Starting folder of Windows and in the task bar (led by Internet Explorer, from %appdata%).
The script works well if I execute it on my local computer.
The script works well if I copy it manually on the remote computer (running from my desk to the remote computer wuith a USB disk
), and returns me the following :
Userprofile : C:\Document and Settings\Administrateur
AppData : C:\Document and Settings\Administrateur\Application Data
But if I use smartCode to execute the script on the rmote computer, I get :
Userprofile : C:\Documents and Settings\Default User
AppData :
The user name used to loggin on the remote computer is "Administrateur", of course 
Is it a bug ?