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.. 🤔

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 516 views
  • 1 like
  • 2 in conversation