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'

Thank you fro your assistance.

Re: Scripting Translator by Pegasus

Pegasus
Mon Mar 03 10:00:41 CST 2008

"kbass" <kyle.bassman@gmail.com> wrote in message
news:851f8bca-5a68-468b-8edf-64ada0ddfee1@n36g2000hse.googlegroups.com...
> 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'
>
> Thank you fro your assistance.
>

See my detailed reply in the other thread you started under
your alternative name.



Re: Scripting Translator by kbass

kbass
Mon Mar 03 10:38:26 CST 2008

On Mar 3, 11:00 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "kbass" <kyle.bass...@gmail.com> wrote in message
>
> news:851f8bca-5a68-468b-8edf-64ada0ddfee1@n36g2000hse.googlegroups.com...
>
> > 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'
>
> > Thank you fro your assistance.
>
> See my detailed reply in the other thread you started under
> your alternative name.

OK ? If I have an alternative name, I was unaware of it. Therefore,
I have no idea what other thread.

Re: Scripting Translator by Pegasus

Pegasus
Mon Mar 03 10:47:48 CST 2008


"kbass" <kyle.bassman@gmail.com> wrote in message
news:ff07985f-58cd-4e48-a046-36984e894674@v3g2000hsc.googlegroups.com...
> On Mar 3, 11:00 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>> "kbass" <kyle.bass...@gmail.com> wrote in message
>>
>> news:851f8bca-5a68-468b-8edf-64ada0ddfee1@n36g2000hse.googlegroups.com...
>>
>> > 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'
>>
>> > Thank you fro your assistance.
>>
>> See my detailed reply in the other thread you started under
>> your alternative name.
>
> OK ? If I have an alternative name, I was unaware of it. Therefore,
> I have no idea what other thread.

Some times you appear to post as "kbass" and some times as "Kyle".
Are these alter egos of each other?



Re: Scripting Translator by kbass

kbass
Mon Mar 03 11:00:06 CST 2008

On Mar 3, 11:47 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "kbass" <kyle.bass...@gmail.com> wrote in message
>
> news:ff07985f-58cd-4e48-a046-36984e894674@v3g2000hsc.googlegroups.com...
>
>
>
> > On Mar 3, 11:00 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> >> "kbass" <kyle.bass...@gmail.com> wrote in message
>
> >>news:851f8bca-5a68-468b-8edf-64ada0ddfee1@n36g2000hse.googlegroups.com...
>
> >> > 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'
>
> >> > Thank you fro your assistance.
>
> >> See my detailed reply in the other thread you started under
> >> your alternative name.
>
> > OK ? If I have an alternative name, I was unaware of it. Therefore,
> > I have no idea what other thread.
>
> Some times you appear to post as "kbass" and some times as "Kyle".
> Are these alter egos of each other?

Same person. I accessed the forum a different way when I posted
yesterday, than I did today, if that makes any sense.

Re: Scripting Translator by Todd

Todd
Tue Mar 04 01:58:06 CST 2008

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)


Re: Scripting Translator by Tom

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/