Script to update persistent list of Recycle Bin item directories then empty + script to 'cipher /w:' list...

At what level can a party fight a mimic?

How do I deal with being jealous of my own players?

RS232 to Raspberry Pi Zero W

Detect if page is on experience editor Sitecore 9 via Javascript?

Skis versus snow shoes - when to choose which for travelling the backcountry?

Are paired adjectives bad style?

How do ISS astronauts "get their stripes"?

Center single line(s) in align

When an experienced monk meditates how much does their mind wander?

Graphing random points on the XY-plane

Non-Italian European mafias in USA?

Book about a time-travel war fought by computers

What is better: yes / no radio, or simple checkbox?

If a set is open, does that imply that it has no boundary points?

Inverse of the covariance matrix of a multivariate normal distribution

Borrowing Characters

Traversing Africa: A Cryptic Journey

Six real numbers so that product of any five is the sixth one

Citing contemporaneous (interlaced?) preprints

If nine coins are tossed, what is the probability that the number of heads is even?

When was drinking water recognized as crucial in marathon running?

Where is the fallacy here?

Shift from /sk/ → /ʃ/

Can a space-faring robot still function over a billion years?



Script to update persistent list of Recycle Bin item directories then empty + script to 'cipher /w:' list then clear list, is it possible?


Drive appears twice, Recycle bin empties itselfWhy does the recycle bin icon on the desktop appear full even though the recycle bin is empty?Recycle Bin does not work or is corruptRemove Pin to Start Option on Just Desktop Recycle Bin in Windows 8Move files to directory instead of recycle binWindows - Can't delete folder from Recycle Bin and it won't restoreHow can a Nautilus script be run for an empty directory?Remove-Item Skips Recycle BinGetting the restore location of an item inside the Recycle Bin, prior to restoringWhy does Windows 10 take so long to empty the recycle bin













0















My goal is to change the 'Empty Recycle Bin' option(both in the recycle bin, and in right click context menu) so that it adds the directories of every item about to be emptied to a list, and then empties like normal. And then have an option on the Recycle Bin's right click menu to 'cipher /w:' all of the listed directories.



I need to know if 3 things are possible:





Making a script(.bat/.cmd/.ps1) that when run:



Adds the directories(including drive) of each item currently in the Recycle Bin to a list file.



When it's done adding items, it checks the list and removes items that have duplicate directories and items that are sub-directories of other items.



(From the start of the list file to the very end, when it adds items when there's already existing items and when it removes items, this script needs to maintain perfectly consistent formatting on the list. the same punctuation and white-space between and after each list item.)



Empties the Recycle Bin when it's finished adding to/editing the list.





Changing the action of the 'Empty Recycle Bin' button/context menu option:



'Empty Recycle Bin' would now launch a scheduled task that launches the first script with highest privileges.





Making a script(.bat/.cmd/.ps1) that when run:



Reads the list that gets edited by the first script.



Runs the 'cipher /w:' command on each listed directory.



Clears the list when it's done with all the directories.





Some things worth consideration:



I have 3 drives, but I specifically want to do this so it affects the "master" recycle bin on the desktop that has all deleted items in it.



My idea for the list file is for it to be persistent, ie. I would create it in a location that wouldn't change, and the scripts could both be set directly to the location of this file, so there's no need to incorporate any sort of code to dynamically change the working directories.





All I want out of this post is to know if these things are possible.



Assuming it's all possible I wouldn't mind some extra how-to info or relevant information resources if anyone is willing.










share|improve this question







New contributor




BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    My goal is to change the 'Empty Recycle Bin' option(both in the recycle bin, and in right click context menu) so that it adds the directories of every item about to be emptied to a list, and then empties like normal. And then have an option on the Recycle Bin's right click menu to 'cipher /w:' all of the listed directories.



    I need to know if 3 things are possible:





    Making a script(.bat/.cmd/.ps1) that when run:



    Adds the directories(including drive) of each item currently in the Recycle Bin to a list file.



    When it's done adding items, it checks the list and removes items that have duplicate directories and items that are sub-directories of other items.



    (From the start of the list file to the very end, when it adds items when there's already existing items and when it removes items, this script needs to maintain perfectly consistent formatting on the list. the same punctuation and white-space between and after each list item.)



    Empties the Recycle Bin when it's finished adding to/editing the list.





    Changing the action of the 'Empty Recycle Bin' button/context menu option:



    'Empty Recycle Bin' would now launch a scheduled task that launches the first script with highest privileges.





    Making a script(.bat/.cmd/.ps1) that when run:



    Reads the list that gets edited by the first script.



    Runs the 'cipher /w:' command on each listed directory.



    Clears the list when it's done with all the directories.





    Some things worth consideration:



    I have 3 drives, but I specifically want to do this so it affects the "master" recycle bin on the desktop that has all deleted items in it.



    My idea for the list file is for it to be persistent, ie. I would create it in a location that wouldn't change, and the scripts could both be set directly to the location of this file, so there's no need to incorporate any sort of code to dynamically change the working directories.





    All I want out of this post is to know if these things are possible.



    Assuming it's all possible I wouldn't mind some extra how-to info or relevant information resources if anyone is willing.










    share|improve this question







    New contributor




    BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      My goal is to change the 'Empty Recycle Bin' option(both in the recycle bin, and in right click context menu) so that it adds the directories of every item about to be emptied to a list, and then empties like normal. And then have an option on the Recycle Bin's right click menu to 'cipher /w:' all of the listed directories.



      I need to know if 3 things are possible:





      Making a script(.bat/.cmd/.ps1) that when run:



      Adds the directories(including drive) of each item currently in the Recycle Bin to a list file.



      When it's done adding items, it checks the list and removes items that have duplicate directories and items that are sub-directories of other items.



      (From the start of the list file to the very end, when it adds items when there's already existing items and when it removes items, this script needs to maintain perfectly consistent formatting on the list. the same punctuation and white-space between and after each list item.)



      Empties the Recycle Bin when it's finished adding to/editing the list.





      Changing the action of the 'Empty Recycle Bin' button/context menu option:



      'Empty Recycle Bin' would now launch a scheduled task that launches the first script with highest privileges.





      Making a script(.bat/.cmd/.ps1) that when run:



      Reads the list that gets edited by the first script.



      Runs the 'cipher /w:' command on each listed directory.



      Clears the list when it's done with all the directories.





      Some things worth consideration:



      I have 3 drives, but I specifically want to do this so it affects the "master" recycle bin on the desktop that has all deleted items in it.



      My idea for the list file is for it to be persistent, ie. I would create it in a location that wouldn't change, and the scripts could both be set directly to the location of this file, so there's no need to incorporate any sort of code to dynamically change the working directories.





      All I want out of this post is to know if these things are possible.



      Assuming it's all possible I wouldn't mind some extra how-to info or relevant information resources if anyone is willing.










      share|improve this question







      New contributor




      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      My goal is to change the 'Empty Recycle Bin' option(both in the recycle bin, and in right click context menu) so that it adds the directories of every item about to be emptied to a list, and then empties like normal. And then have an option on the Recycle Bin's right click menu to 'cipher /w:' all of the listed directories.



      I need to know if 3 things are possible:





      Making a script(.bat/.cmd/.ps1) that when run:



      Adds the directories(including drive) of each item currently in the Recycle Bin to a list file.



      When it's done adding items, it checks the list and removes items that have duplicate directories and items that are sub-directories of other items.



      (From the start of the list file to the very end, when it adds items when there's already existing items and when it removes items, this script needs to maintain perfectly consistent formatting on the list. the same punctuation and white-space between and after each list item.)



      Empties the Recycle Bin when it's finished adding to/editing the list.





      Changing the action of the 'Empty Recycle Bin' button/context menu option:



      'Empty Recycle Bin' would now launch a scheduled task that launches the first script with highest privileges.





      Making a script(.bat/.cmd/.ps1) that when run:



      Reads the list that gets edited by the first script.



      Runs the 'cipher /w:' command on each listed directory.



      Clears the list when it's done with all the directories.





      Some things worth consideration:



      I have 3 drives, but I specifically want to do this so it affects the "master" recycle bin on the desktop that has all deleted items in it.



      My idea for the list file is for it to be persistent, ie. I would create it in a location that wouldn't change, and the scripts could both be set directly to the location of this file, so there's no need to incorporate any sort of code to dynamically change the working directories.





      All I want out of this post is to know if these things are possible.



      Assuming it's all possible I wouldn't mind some extra how-to info or relevant information resources if anyone is willing.







      windows-10 powershell script batch-file recycle-bin






      share|improve this question







      New contributor




      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 20 hours ago









      BattleSnacksBattleSnacks

      11




      11




      New contributor




      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      BattleSnacks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          BattleSnacks is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411292%2fscript-to-update-persistent-list-of-recycle-bin-item-directories-then-empty-sc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          BattleSnacks is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          BattleSnacks is a new contributor. Be nice, and check out our Code of Conduct.













          BattleSnacks is a new contributor. Be nice, and check out our Code of Conduct.












          BattleSnacks is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411292%2fscript-to-update-persistent-list-of-recycle-bin-item-directories-then-empty-sc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

          looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...