Automatic cleanup of OperateITTemp1
It is no secret that the cached stuff under C:\OperateITTemp1 can get corrupted / bloated as a result of high client uptimes or a lot of system changes.
and he is asking to create an automatic script to delete the files inside OperateITTemp1.
The project is in engineering phase and there are tens of engineers using different engineering stations. So there are many changes in the system and many users frequently log in / out and disconnecting from clients.
What is the safe way how to cleanup OperateITTemp1? Is stopping 800xA services and reboot required?
I am not 100% sure, but the following might be sufficient:
1) On the client node concerned; Configuration Wizard -> Maintenance -> perform "Stop all processes associated with the ABB 800xA Base"
2) On the client node concerned; Windows Explorer -> delete C:\OperateITDatax and C:\OperateITTempx
3) Restart the client node concerned
4) Preferable on the primary Aspect Server, start an Engineering Workplace -> navigate to the client node concerned in the Node Administration Structure,
select the Node Definition aspect (for the client node concerned) and do "Connect remote node".
I hope the above might help you
You could theoretically make a script that asks:
Do you really want to purge OperateITTemp and reboot this computer (Yes [No])?
Using e.g. Powershell, you can rather easily draw real dialog boxes instead of presenting an Terminal Window and a blinking DOS-cursor.
If the user answers yes, rename the OperateITTemp folder to OperateITTemp_old and then call an immediate & forced reboot (SHUTDOWN.EXE /F /R /T 0)
If the _old folder already exists, delete it before renaming.
I haven't tested this, maybe delete works as well, but processes might hold files open preventing it.