ZTree.com  | ZEN  | About...  

 Index   Back

CO1B with the opposite nature of CO1A IF NOT...   [ZEP]

By: Ryan       
Date: Sep 02,2017 at 09:50
In Response to: my EDIT.BAT, the speed is superb, it has a pizzazz (Ryan)

AA=
@ECHO OFF

SET P1=START "" NOTEPAD.EXE

Setlocal EnableExtensions DisableDelayedExpansion
SET /A .EXE=.COM=.MP3=.WAV=.OGG=.MID=.KAR=.AVI=.MP4=.MKV=.VOB=.IFO=.MPG=.MPEG=.ASF=.TP=.ISO=.MDF=.MDS=.BIN=.IMG=.CCD=.ZIP=.RAR=.7Z=.BMP=.JPG=.JPEG=.PNG=.TIF=.PCX=.GIF=.DLL=.MSI=.ICO=.SYS=.LNK=.PIF=.CHM=.ZAM=.ZA$=.PDF=.TRC=0
SET %~x1=1
SET /A .EXT1=.EXE+.COM+.MP3+.WAV+.OGG+.MID+.KAR+.AVI+.MP4+.MKV+.VOB+.IFO+.MPG+.MPEG+.ASF+.TP+.ISO+.MDF+.MDS+.BIN+.IMG+.CCD+.ZIP+.RAR+.7Z+.BMP+.JPG+.JPEG+.PNG+.TIF+.PCX+.GIF+.DLL+.MSI+.ICO+.SYS+.LNK+.PIF+.CHM+.ZAM+.ZA$+.PDF+.TRC

IF NOT "%.EXT1%"=="1" %P1% %1

GOTO :EOF



this one AA= goes to Co1B, if EDIT.BAT cant do a text file like "abc.hzu" then AA= surely will.

this ends to my editing to a bmp or an exe by accident.
what a good day!!

275 views      
Thread locked
 

Messages in this Thread

 
94,578 Postings in 11,930 Threads, 348 registered users, 16 users online (0 registered, 16 guests)
Index | Admin contact |   Forum Time: Nov 12, 2019 - 6:01 pm EST  |  Hits:29,077,148  (6,323 Today )
RSS Feed