• Script

    From Exodus@21:1/144 to All on Thu Jul 4 13:33:18 2024
    If you're like me, and HATE seeing bbses or websites throw ad files into arhives, then this is for you! I have no problem with a comment in the archive, I just cannot stand having junk files pile up everywhere!


    Script to use WinRAR to get rid of those danger.nfo files or pcm.??? files from your archives.


    This is for use in a BATCH file. If using it as a stand alone command from the prompt, change all the %% to just %.




    for %%I in (d:\temp\*.zip) do "c:\program files\winrar\WinRAR.exe" d -ibck "%%I" danger.nf? /Y



    Any questions on how this works, just ask. Remember BACKUP things before you try something like this ... because you NEVER know. The command prompt is NOT forgiving!

    ... See ya in the chronostream, Time Jockey!

    --- Renegade v1.35à/DOS
    * Origin: The Titantic BBS Telnet - ttb.rgbbs.info (21:1/144)
  • From Exodus@21:1/144 to Shurato on Thu Jul 4 15:43:10 2024
    for %%I in (d:\temp\*.zip) do "c:\program files\winrar\WinRAR.exe" d -
    ^^^^^^^^^^

    I just changed this to %1 so it would call whatever info the the command line, but I'm still thinking how to get it to do sub directories without making this command the same just changing the dir in a batch file.

    If you change the above to %1 it would work like this in the batch file

    remfile.bat d:\temp\*.zip

    and remfile.bat would run and place "d:\temp\*.zip" in the ()'s above.

    ... Shoot first, and whatever you hit, call it the target.

    --- Renegade v1.35à/DOS
    * Origin: The Titantic BBS Telnet - ttb.rgbbs.info (21:1/144)