Subj : "On the Fly" Hex-numb conversion ... ??? To : Gerald Miller From : Jasen Betts Date : Fri Mar 08 2002 06:11 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: "On the Fly" Hex-numb conversion ... ??? Hi Gerald. 06-Mar-02 08:48:42, Gerald Miller wrote to Jasen Betts JB>> you could use 0000[0-9A-F][0-9A-F][0-9A-F][0-9A-F].* GM> Is it possible that you can suggest a method to replace the GM> ``.*'' using Rolf Jentsch suggestion (or something similar): RJ>> set dx=[0-9] RJ>> set ss=.su%dx;.mo%dx;.tu%dx;.we%dx;.th%dx;.fr%dx;.sa%dx GM> to handle the "valid" file extensions? the only way I can see to combine them is to use a for loop. or a single expresion for each weekday. trying to put a full ; list into a variable crashed 4dos. set f= for x in (su mo tu we th fr sa) do %= if exist 0000[0-9A-F][0-9A-F][0-9A-F][0-9A-F].%x[0-9] ( dir /km 0000[0-9A-F][0-9A-F][0-9A-F][0-9A-F].%x[0-9] >> logfile set f=yes ) iff "%f"="yes" then echo unknown system(s) >> logfile etc... endiff GM> but I keep getting "File not found" error with the contents of GM> the ss line after the filename..... I can't see how it's supposed to work... the list only has extensions, nothing for the name... -=> Bye <=- -- |Fidonet: Jasen Betts 3:640/531.42 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .