0

I want to create a batch file for others to run, but don't want it to permanently delete files. Is there any way without third party software and without displaying any dialogs to delete files to the Recycle Bin from a batch file?

[Someone is saying this question is same as What is the command line way of sending files to the recycle bin?, but there a third party software is being requested which I don't want. So how is it a duplicate question?]

12
  • Who said I want to remove a file FROM the RB? I want to delete a file TO the RB using batch. Normal del command if you don't know doesn't use RB and does permanent deletion, which I don't want.
    – Jai
    Commented Jan 15, 2017 at 22:46
  • What is rude about the comment above? I don't get it? Ok, if you don't know and can't help then no use of false excuses about disrespect. I will wait for an answer from someone else.
    – Jai
    Commented Jan 15, 2017 at 22:50
  • Very ugly style of calling Delete from file's context menu using JScript in deleteJS.bat, but @AFH it gives me a clue about using JScript from batch so thank you. I will see if there is better way to delete to RB in JScript.
    – Jai
    Commented Jan 15, 2017 at 23:01
  • No @Ramhound how do I know if you know about del behavior or not? I was just being clear about what I wanted.
    – Jai
    Commented Jan 15, 2017 at 23:02
  • I don't see point of this argument @Ramhound. I was not having any intention of being rude, and neither I was but maybe you felt that way and I can't help it. And NO, that is not a duplicate because I am not asking for third party software which other question is about.
    – Jai
    Commented Jan 15, 2017 at 23:08

0

Browse other questions tagged .