Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

command order

Oct
358
2
Hello --

If i set the env vars

set .foo=foocmd.exe
set .bar=foocmd.exe

Can I control the order that anything.foo or anything.bar get executed by adding .foo and .bar to the pathext env variable?

THanks
 
I think so. I tried it with a BTM instead of an EXE.
Code:
v:\> type foocmd.btm
echo Called as %0 %1

v:\> set .*
.bar=foocmd.btm
.foo=foocmd.btm

v:\> eset pathext
PATHEXT=.foo;.bar;.BTM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw

v:\> anything
Called as foocmd.btm V:\anything.foo

v:\> eset pathext
PATHEXT=.bar;.foo;.BTM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw

v:\> anything
Called as foocmd.btm V:\anything.bar
 
Back
Top
[FOX] Ultimate Translator
Translate