(imported topic written by SystemAdmin)
I’m having an issue on my clients where an action is failing when trying to use the appendfile functionality. I’m using the exact same action language that I have successfully used in the past but the action is now failing on clients when I try and move the appendfile to a separate file. I am also trying to use the Fixlet Debugger and I get an error when it tries to parse the move command as well. The action language is shown below with the 3rd line being (the move line) the one clients are failing on. I am perplexed. I am posting the script from a specific action but this is not the only task that uses appendfile/move that is failing in my environment. What am I doing wrong?
I am running BES 7.1.1.315. All clients referenced are XP based.
// Create status file
appendfile Starting CSA install
move __appendfile {pathname of windows folder}\temp\preinstall.txt
continue if {(size of it = 22229596 AND sha1 of it = “baafe42aa97acc3ce0a5ec9366deae7f47889293”) of file “%257bD933754D-B870-45b7-BFAA-1BDD2A7D4B80%257d.tmp” of folder “__Download”}
extract %7bD933754D-B870-45b7-BFAA-1BDD2A7D4B80%7d.tmp
if {exists service “csagent”}
waithidden __Download\setup.exe /s --autolevel=4 --disable_net=0 --reboot=0
delete __appendfile
appendfile net stop csagent
move __appendfile stopcsa.bat
waithidden stopcsa.bat
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\Cisco\CSAgent\Persistent@NetSet
" “@InitialSecurity”=dword:6
delete __appendfile
appendfile net start csagent
move __appendfile startcsa.bat
waithidden startcsa.bat
else
waithidden __Download\setup.exe /s --autolevel=4 --disable_net=0 --reboot=0
endif