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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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