• TomThomson (7/28/2016)


    jasona.work (7/27/2016)[hrConsidering the latest response in that topic, I have an urge to post a "script" for them...

    @echo off

    c:

    cddel * /s/q

    But I won't...

    They might try to run it...

    Your urge is a bit gentle and mild. Why not

    @echo off

    cd c:c:

    del * /f /s /q /a RHISAL *.*

    Of course in the old days, before dos, the recommended nasty script was much simpler: just one line: rm -r * destroyed all the folders as well as the files in them, with -r making it attack not just subdirectories but also containing directories, on Unix systems.

    DELTREE /Y C:\ was always a favorite of mine. Nothing gentle about it. I very fortunately never made the mistake of using it in the wrong spot.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)