SAS Programming

DATA Step, Macro, Functions and more
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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 1328 views
  • 1 like
  • 2 in conversation