Quantcast
Channel: Symantec Connect - Client Management Suite - Discussions
Viewing all articles
Browse latest Browse all 2021

Problem copying file into the AppData folder

$
0
0
I need a solution

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. 

0

Viewing all articles
Browse latest Browse all 2021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>