ON 20040522@11:17:42 PM at page: http://techref.massmind.org/techref/dos/binbat.htm#38129.9706134259 James Newton[JMN-EFP-786] Code:
@echo off
if "%1"=="GoTo" goto %2

echo `h}aXP5y`P]4nP_XW(F4(F6(F=(FF)FH(FL(Fe(FR0FTs*}`A?+,> %temp%.\pfx.com
echo fkOU):G*@Crv,*t$HU[rlf~#IubfRfXf(V#fj}fX4{PY$@fPfZsZ$:KrM$>> %temp%.\pfx.com
echo 00rqdO1iI$W?DAj{?_@EuF)1F8b1j$MC?Be.]tI:PAJrff764F0T'}$$5]>> %temp%.\pfx.com
echo 7$MG{Fdl$@i*JtSA$$5d80rL@bB=i{A$'FJDbqJ2Djw}D{1~Eu6=?rV+5l>> %temp%.\pfx.com
echo YzHw8TKc3O}@A$$$)$#>> %temp%.\pfx.com
:: filename.ext is the file to be processed
%temp%.\pfx.com < filename.ext > %temp%.\t1.bat
set P=call %0 GoTo process
:: Set below the variable name where the string should be saved
call %temp%.\t1.bat LINE
set P=
del %temp%.\t1.bat
goto eof

:process
:: On this label, each line from the file to be processed will be
:: once represented by a variable (its name is defined above)
echo LINE=%LINE%
goto eof

:eof
ON 20040522@11:21:22 PM at page: http://techref.massmind.org/techref/dos/binbat.htm#38129.9731712963 James Newton[JMN-EFP-786] Code:
:: Parse a string (%str%)
@echo off

:: Set string to parse
set str=some text

echo `h}aXP5y`P]4nP_XW(F4(F6(F=(FF)FH(FL(Fe(FR0FTs*}`A?+,> %temp%.\t1.com
echo fkOU):G*@Crv,*t$HU[rlf~#IubfRfXf(V#fj}fX4{PY$@fPfZsZ$:K0>> %temp%.\t1.com
echo 6$-tH[fHzt'fZJtxP'7:p*_q5b*RJo09Mleb\f7+V(52O-f,`u/\vm(]>> %temp%.\t1.com
echo e.iv+y7(-W:ldwn0V.-Z0I6l3)@f2r=?rV+5lYzH]'=v\{)(c\#>> %temp%.\t1.com
:loop
if "%str%"=="" goto endloop
%temp%.\t1.com %str%> %temp%.\t2.bat
call %temp%.\t2.bat str c

:: Right here, %C% will represent each character
:: from the parsed string
echo "%c%"

goto loop
:endloop
for %%? in (t1.com t2.bat) do del %temp%.\%%?
ON 20040528@1:16:42 PM at page: http://www.sxlist.comdos/filesys.htm#38134.7906018519 James Newton[JMN-EFP-786] removed post 38134.7906018519 |Delete ' /techref/dos/file: /techref/DOS/filesys.htm '