Hello,
In that case, what you can do is, use Automation Anywhere to logoff your system. You can create a task that includes 'Delete Files' command to delete particular notepad file. After this, insert 'System Logoff' command to logoff your machine. The text format of commands would appear like this,
Delete Files "C:\temp.txt"
Delay: (500 ms)
System: Logoff
You can schedule this task as per your requirement (i.e. when you want to logoff) or you can assign a hotkey (keyboard shortcut) to this task so that whenever you want to logoff just press the assigned hotkey and Automation Anywhere will first delete specified notepad file and then will logoff your machine.
We have also attached sample task for your convenience. Copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running this task, edit it according to your requirement i.e. change the file that you want to delete.
Hope that helps.
|