Petr Laznovsky
unread,May 23, 2012, 5:59:32 AM5/23/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Trying to add progress "spinner" to mybat.cmd generated by Carlos
bhx.exe to spin "-\|/" characters until file is fully extracted.
Have spinner function working and now want to include line "call
:spinner" after each block of code in the mybat.cmd, just after those lines:
Echo.For b=1To 69Step 2:o.Write Chr(Clng("^&H"^&Mid(%%b,b,W^)^)^):Next)
Tried string containing poison characters enclosed with siglequotes,
doublequotes, square brackets or parenthesis, but I have no luck, maybe
due to wrong concept???
L.
@echo on
if exist mybat_p.cmd del mybat_p.cmd
for /f %%a in (mybat.cmd) do (
if "%%a"=="Echo.For b=1To 69Step 2:o.Write
Chr(Clng("^&H"^&Mid(%%b,b,W^)^)^):Next)" (
"echo Echo.For b=1To 69Step 2:o.Write
Chr(Clng("^&H"^&Mid(%%b,b,W^)^)^):Next)" >> mybat_p.cmd
echo call :spinner
) else (
echo %%a >> mybat_p.cmd
)
)