I am creating an action to delete files from users’ temp folders. The action was created in a site called Helpdesk Site The action creates a batch file and places it in C:\Program Files\BigFix Enterprise\BES Client__BESData\CustomSite_Helpdesk_Site. In the line waithidden “{pathname of client folder of site “CustomSite_Helpdesk_Site” & “\RunQuiet.exe”}” I need to know what should go where it says “CustomSite_Helpdesk_Site”. The way it is written now, it is failing on that line.
delete __appendfile
delete purgeprofiletemp.bat
appendfile @ECHO OFF
appendfile for /d %%K in (“C:\Documents and Settings*”) do (del /S /F /Q “%%~fK\Local Settings\Temp*.*” >>C:\purge.log)
move __appendfile purgeprofiletemp.bat
waithidden “{pathname of client folder of site “CustomSite_Helpdesk_Site” & “\RunQuiet.exe”}” purgeprofiletemp.bat
Thank Lee. I tried that originally, but it doesn’t seem to work. The entire action completes according to BES, but the batch file never executes. that’s why I thought I had the wrong site and changed it to CustomSite_Helpdesk_Site.
We did open a command line ran as the SYSTEM account and manually launched the batch file that the fixlet created, and it works. But if the BigFix agent launches it, it doesn’t seem to do anything. can you try running this on your side and let me know how it works?
delete __appendfile
delete purgeprofiletemp.bat
appendfile @ECHO OFF
appendfile for /d %%K in (“C:\Documents and Settings*”) do (del /S /F /Q “%%~fK\Local Settings\Temp*.*” >>C:\purge.log)
move __appendfile purgeprofiletemp.bat
wait “{pathname of client folder of site “bessupport” & “\RunQuiet.exe”}” purgeprofiletemp.bat
appendfile @ECHO OFF
appendfile for /d %%K in (“C:\Documents and Settings*”) do (del /S /F /Q “%%~fK\Local Settings\Temp*.*” >>C:\purge.log)
move __appendfile purgeprofiletemp.bat