Subj : Re: "On the Fly" Hex-numb conversion ... ??? To : Gerald.Miller@xspamp0.f512.n342.z1. From : Steve Date : Sat Mar 02 2002 04:54 pm From: "E. S. (Steve) Fabian" Gerald.Miller@xspamp0.f512.n342.z1.fidonet.org wrote: > > I had thought about: > > iff exist %INC%\0000????.* then > iff exist %INC%\0000FE05.* then > dir /hkmfo:d %INC%\????FE05.*>%INC%\INCOME.DAT > set system=The First BBS > set sysop=First Sysop > set EXT=1st > elseiff exist %INC%\0000FFF4.* then > dir /hkmfo:d %INC%\????FFF4.*>%INC%\INCOME.DAT > set system=The Second BBS > set sysop=Second Sysop > set EXT=2nd > else > dir /hkmfo:d %INC%\0000????.*>%INC%\INCOME.DAT > set system=Undefined BBS ! > set sysop=UnKnown Sysop > set EXT=none > endiff > endiff > Seems like it should do the job. Incidentally, you could use %INC\... instead of 5INC%\... throughout, 4DOS doesn't need the terminating %; if a character follows a variable name which is a legal character in a variable name, the preferred syntax is %[variablename]... Usig this syntax, the "variablename" itslef may include a variable, e.g., %[x%n] where n has a value in 00..99 allows the emulation of an array of variables. Are you sure that if 0000FE05.* is matched, no other files can match "0000????.*" ? Because if it is possible, you have to use move elaborate techniques, including >>%inc\income.dat, etc. Steve -- E. S. "Steve" Fabian ESFabian@BellAtlantic.net POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 EMPIRE Consultants, Inc. Director, Software Development ------------------------------------------------------------------- --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .