Question:

What does del *.* | y do when typed into notepad and saved as a .bat file?

by  |  earlier

0 LIKES UnLike

I'm not trying to trick people into doing this because I don't know what it will do and I don't want anybody to try this if they don't already know what this does. Please tell me if you already know what this is. Somebody left an answer to a question saying something about this and it just kind of piqued my interest.

 Tags:

   Report

4 ANSWERS


  1. Hey

    Ok, firstly, .bat file format is a kind of program file which DOS systems use. Windows is a DOS system.

    As a kind of program that they are, they need to be written in some specific coding language.

    Batch files (.bat files) will execute just like any other executable file when you lunch it, like games, applications etc...

    Now, to sum up:

    del *.* |  y

    That code will delete (del) every kind of file in any format (*.*) in the folder where the program will be executed. However, the program is meant to ask you first for a confirmation. This time though, it won't because of the "y" which means Yes.

    I'd suggest not doing it or testing it because that is what is going to happen. If you want to clean out a complete folder, this file might help, but why would you want to spend your time creating this file while you can just select the whole folder and delete it? ;)

    Just a note here: Batch files aren't that handy anymore. I don't see why anyone would want to use them.

    Anyway, hope I helped!

    =]

    Peace.

    =]


  2. It will delete all files in the directory which contains the bat file (del *.*) and will not ask you to press "Y" to confirm (/y)

    That "someone" has a sick sense of humor :)

  3. Well, I am that "someone"!!

    The guy was crying for a way to destruct his files and i found no better and simple method!!

    (U know the answer already :-))

  4. It will delete your files, don't make batch files unless you know what your doing.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.