Tom
Tue Mar 04 07:58:30 CST 2008
On Mar 4, 2:58 am, "Todd Vargo" <tlva...@sbcglobal.netz> wrote:
> kbass wrote:
> > Is there any program on the market that will translate Batch file
> > application/scripting to VBS ?
>
> > Example:
>
> > @echo %dbgc% off > {c} if [%1]==[] for %%v in (echo goto:End) do %%v
> > Syntax: %0 Number > ----------.bat echo set {n}=%%2 :Loop >>{c} echo !
> > > {c}.bat find /c "!" {c} call {c} { Requires version 3.0 or later }
> > echo %{n}% if not %{n}%==%1 goto Loop :End for %%v in ({?}.*
> > ----------.bat?) do del %%v
>
> > Especially where the batch file might use 'tokens' and 'delims'
>
> Ditto the multiposting notifications...no further comment on this.
>
> Note, the batch code above appears to be several lines of code jumbled into
> a single line. Like the previous examples you have posted, this code is
> broken. Where are you getting these examples and who is writing them and for
> what purpose? This one appears to be some primitive form of counter written
> for a pre-Windows version of MSDOS. Batch language and techniques vary
> drastically by OS which is another reason an automated converter from batch
> code to another language is impossible.
>
> In short, if you want to learn what these batch codes do, post to
> appropriate groups, explain where you found the code, what it is supposed to
> do, what you hope it can do for you, and in what OS you intend to use it.
>
> --
> Todd Vargo
> (Post questions to group only. Remove "z" to email personal messages)
Unfortunately, this seems to be an ancient one of mine - see
http://members.cox.net/tglbatch/numbers.html :~}
The working form is ...
@echo %dbgc% off > {c}
if [%1]==[] for %%v in (echo goto:End) do %%v Syntax: %0 Number
> ----------.bat echo set {n}=%%2
:Loop
>>{c} echo !
> {c}.bat find /c "!" {c}
call {c} { Requires version 3.0 or later }
echo %{n}%
if not %{n}%==%1 goto Loop
:End
for %%v in ({?}.* ----------.bat?) do del %%v
But it doesn't do anything more than count from 1 to the number
entered on the command line. It was a very simple (early) example
procedure. Surprisingly, it still works in XP.
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/