2 Replies Latest reply on Apr 23, 2008 10:35 AM by Pat_the_one

    How to Copy a file to the local current user directory :c:\Documents and Settings\%username%\Local Settings\Application Data\ ?






      Sorry for my frenchy English



      I have done a script to download file locally on a machine and install some application



      1. Create a folder locally

      2. Copy file from an HTTP share on the core server

      3. Execute local batch file to install the application






      Here is the simple script without the ERROR level check



      REMMKDIR0= c:\profiloxinstall, sync

      REMEXEC5=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/Authentication.config" /dest="c:\profiloxinstall\Authentication.config" /lanpps=0 /wanpps=0

      REMEXEC10=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/7za.exe" /dest="c:\profiloxinstall\7za.exe" /lanpps=0 /wanpps=0

      REMEXEC15=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/dotnetfx.exe" /dest="c:\profiloxinstall\dotnetfx.exe" /lanpps=0 /wanpps=0

      REMEXEC20=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/GlobalNET.msi" /dest="c:\profiloxinstall\GlobalNET.msi" /lanpps=0 /wanpps=0

      REMEXEC25=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/GlobalNet_silent.bat" /dest="c:\profiloxinstall\GlobalNet_silent.bat" /lanpps=0 /wanpps=0

      REMEXEC30=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/AHotFix Global .Net.msp" /dest="c:\profiloxinstall\HotFix Global .Net.msp" /lanpps=0 /wanpps=0

      REMEXEC35=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /p="http://CORE.DOMAIN.COM/teledistrib/Profilox_Client/isscript1150.msi" /dest="c:\profiloxinstall\isscript1150.msi" /lanpps=0 /wanpps=0

      REMEXEC40=cmd /c c:\profiloxinstall\GlobalNet_silent.bat



      In the final launch of the batch file, I'll need to copy the Authentication.config file in the current user directory bellow:



      Xcopy c:\profiloxinstall\Authentication.config c:\Documents and Settings\%username%\Local Settings\Application Data\AS



      I know that this command line will not work because it's launch with the local system account.






      This application need to put this config file hear and not in the all user profile...



      I hear that you can pass some parameter from the database like %databaseinfo%. If someone have some idear to can put this config file in the current user directory I will do appreciate.



      Tanks in advance for reply.