Deleting files in recycle bin

uiautomation
studio

#1

Hi,

I want to delete all the files from Recycle Bin but i am not able to do it. My Robot is able to detect recycle bin and then open it also but after that i am not able to delete files from it.


#2

Hello,

Wouldn’t it be easier to right click and empty Recycle bin?
Or you want to delete from code?

Regards,
Bogdan


#3

Hello there,
Use CMD via Start process and run the script
rmdir /q /s C:\Recycler
or
rd /s /q %systemdrive%$RECYCLE.BIN

For more


#4

Hi,

I have selected all the files in recycle bin after that i have used recording activity to get right click after that i want to select delete and i am not able to select delete option as well and is there any way where i can directly use Keyboard delete button.


#5

Hi,

in command prompt its throwing an error saying the system cannot find the file specified.


#6

Hello there,
First thing you need to run cmd as admin and you need to change the folder name according .
In case of using keyboard delete button you can use SendHotkey activity and then enter
delete


#7

Hi,

its not working
shall i send you my workflow