BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Handihusen
Obsidian | Level 7
Please help me,
I work from home,
I have a PC at my office (windows 10, locked for remote destop),
I used to using windows task scheduler to running some reguler codes,

Now I want to emptying the Recycle Bin at that pc,
Is there any codes to do:"emptying recycle bin" ?

Thanks in advance 🙏
1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

It is not a SAS issue.

 

x "powershell Clear-RecycleBin -Force";

 

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-recyclebin?...

 

I have not tried to see if the code can be executed remote desktop.

 

View solution in original post

4 REPLIES 4
japelin
Rhodochrosite | Level 12

It is not a SAS issue.

 

x "powershell Clear-RecycleBin -Force";

 

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-recyclebin?...

 

I have not tried to see if the code can be executed remote desktop.

 

Handihusen
Obsidian | Level 7
Thank you 🙏 👍
Handihusen
Obsidian | Level 7
Its works at my pc/laptop if the code like this:
x "powershell Clear-RecycleBin";

If i using "-Force" then nothing happen.. 🤔

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 895 views
  • 1 like
  • 2 in conversation