• 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 Shurato@21:2/148 to Exodus on Thu Jul 4 12:20:00 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!

    I've seen programs that do this, but haven't tried any of them. I don't know if they (this one doesnt' seem to) do subdirs or not. That's mandatory...
    I've got way too many directories to run this manually in...

    --
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp,
    ,wss) (Ports 22,23,110,21,119,8080) (ssh login 'bbs' pass 'shsbbs').


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (21:2/148)
  • 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)