I'm running a batch file with the following command to clean up logs and log the information to a text document on user workstations. Workstations are Windows 10, and we are running SAS Foundation 9.4m5.
"C:\Program Files\SASHome\SASFoundation\9.4\cleanwork.exe" /alllogs /verbose >>%logfile%
In my log I'm finding most of the entries say the process is not active and the file is removed, but sometimes it shows the following:
ERROR: C:\Users\user\AppData\Roaming\SAS\LOGS\sasjava.3f74.46f5e1d2.log : The process cannot access the file because it is being used by another process.
REMOVED: C:\Users\user\AppData\Roaming\SAS\LOGS\sasjava.3f74.46f5e1d2.log
I've checked and this file looks like it was not removed, is there a way I can make the process report correctly about removing or not removing a log file when it is in use? My other job for the temporary directories appears to be reporting correctly.
Thanks,
Carmen