Batch template -about windows & dos apps

Q & A for the old 2X Explorer file manager. For other topics, please use the corresponding forum.

Moderators: fgagnon, nikos, Site Mods

Post Reply
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Batch template -about windows & dos apps

Post by Starsurfer »

In the same way as the Address Bar can be used to excute windows & Dos
using '>' & '$' ;....is there any way to do a similar thing with the
Ctrl+B , Batch function. ?
-As, this app I'm using can function in both, the Windows & Dos mode...I
would prefer to use it in the Windows mode.
This is possible if I issue the command through the address bar
but then I can only process 1 file at a time.
Nikos ... ?

It would be a great help if I could use it as a Windows app, while using a Template.(As the batch template is what I normally use with it)

Also the console closes after completion in Windows mode... but remains open in dos mode.
Am using Win98.

Thanks..
~~~~~~~~~~
Starsurfer...
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

this is interesting!
although there's no "batch" execution for windows programs, x2 could itself act as the "interpreter", which basically means that it would execute commands from the "script" one at a time like as if they were keyed in from the addressbar using the "> " prompt

some glitches in this scenario:
* there's no console for windows apps, so you wouldn't be able to see any output unless the program itself would be polite enough to show what went on
* you can't use DOS commands like ren etc
* you can't do checks for returned values, if blocks etc

would it still be useful for you?
User avatar
zippit
Silver Member
Silver Member
Posts: 240
Joined: 2003 Mar 11, 23:40
Location: Mississauga,ON,Canada

x2 or 2Xplorere support

Post by zippit »

Where are we ?
:roll:
War is Hell
Lest We Forget.
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

this is ground control to major tom :)
User avatar
zippit
Silver Member
Silver Member
Posts: 240
Joined: 2003 Mar 11, 23:40
Location: Mississauga,ON,Canada

Dos commands in Windows

Post by zippit »

Didn't windows solved this with gui and shortcuts ?
I created many batch files :example.bat : for my Dos apps,why do you need them for Windows.Always willing to learn.
:D
War is Hell
Lest We Forget.
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Post by Starsurfer »

hi .

this is interesting!
although there's no "batch" execution for windows programs, x2 could itself act as the "interpreter", which basically means that it would execute commands from the "script" one at a time like as if they were keyed in from the addressbar using the "> " prompt


that would be cool.... <:-)

some glitches in this scenario:....
>......
would it still be useful for you?


Sure. -It still would be very useful :-)

Zippit:
Didn't windows solved this with gui and shortcuts...
..find it useful.....especially when you have to do the same/sequence of things
many times(i.e the template thing in 2x)
Also the prog on its own doesn't have a Gui.

Thanks
~~~~~~~~~
Starsurfer
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Post by Starsurfer »

hi.

Nikos wrote:
there's no console for windows apps, so you wouldn't be able to see any output unless the program itself would be polite enough to show what went on
Yes. ...-Its polite enough..
when I try it on 1 File using the '>' in the address bar, it shows the output
while proccessing & then closes the window after proccessing.

What about the constructs, $B for example...could that be used ?
That would be very very helpful....
I tried it through the address bar & it wouldn't work ($B i.e)
the processing worked properly.

Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Edit : Concerning $B, above...,that
must have not worked because , $B cannot be used in the address bar. Right ?
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

in x2 all $-tokens can be used in the addressbar, except counters
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Post by Starsurfer »

don't know what I'm doing wrong...

here's the command I used in the address bar

> "C:\Program Files\Lame\lame.exe" --alt-preset standard "$N" "$B.mp3"

It gets processed but the file gets named, $B.mp3

Same thing happens with $ instead of >

In the batch-template though, everyttyhing works fine.

thanks..
User avatar
zippit
Silver Member
Silver Member
Posts: 240
Joined: 2003 Mar 11, 23:40
Location: Mississauga,ON,Canada

address bar ?

Post by zippit »

I love 2xExplorer and don't use this.What is it's main use,it can't be Dos commands,can it ? LIke @echo off. :lol:
I don't really understand what this member wants to do.
:wink:
War is Hell
Lest We Forget.
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

zippit, these are all dos commands, including echo. Not too much to worry, you can easily do without them

starsurfer: are you sure you're using xplorer2? (not 2x)
in x2 $B is correctly identified in the addressbar, like the rest of the $-tokens. Try something like:

$ echo "$N" "$B.e" "e.$E"

and see what it gets printed out
User avatar
zippit
Silver Member
Silver Member
Posts: 240
Joined: 2003 Mar 11, 23:40
Location: Mississauga,ON,Canada

re zippit

Post by zippit »

I think it's time to zip my lip.thanks for your nice replys.I will do some more testing of x2.
:D
War is Hell
Lest We Forget.
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Post by Starsurfer »

Hi.

I was talking about 2x. ($B & all...) :-)
think I mentioned it somewhere...

Of`course,...I knew that you were referring to X2, where implementing
the template thing was concerned....
but it escaped me in some of your posts...sry

btw, I've just d/loaded the latest version of X2 after a gap of about 1-2 versions & got a little thrill as there is a lot more there.
cool....!!
Post Reply