I am trying to copy/replace an .ini file into the following folder.
C:\Users\%USERNAME%\AppData\Roaming\ImageNow
I have tried doing this by way of a Package Delivery Task and Managed Software Delivery in Altiris. Both methods give me a success code, but the file never copies over. Here is what I am running in the .bat file for Managed Software delivery
echo off
mkdir "c:\Drivers\ImageNow\ImageNow SMS"
copy "ImageNow SMS\*.*""c:\drivers\ImageNow\ImageNow SMS\"
Copy "c:\drivers\ImageNow\ImageNow SMS\imagenow.ini""C:\Users\%USERNAME%\AppData\Roaming\ImageNow"
The stange thing is if open a command prompt and run the .bat file I pushed out to the client through Managed Software Delivery it copies the file over. Not sure why the file does not copy over when executed by the Altiris agent.
For the Package Delivery task I am using the following for the "Location on destination computer"
C:\Users\%USERNAME%\AppData\Roaming\ImageNow
I also tried using %APPDATA%\ImageNow and that also gave me a success code, but did not actually copy the file over.