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!!

260 views      
Thread locked
 

Messages in this Thread

 
94,426 Postings in 11,918 Threads, 348 registered users, 12 users online (2 registered, 10 guests)
Index | Admin contact |   Forum Time: Sep 18, 2019 - 11:22 am EDT  |  Hits:28,648,521  (1,268 Today )
RSS Feed