ZTree.com  | ZEN  | About...  

 Index   Back

Where is video.bat located?   [Q]

By: Martijn Coppoolse   Homepage   Voorburg, NL  
Date: Oct 17,2018 at 09:31
In Response to: [Q] how can I pass variables from one batch to another? (Ryan)

> MP4.BAT has
> mplayer.exe %1
> put your ztree's cursor on a file abc.mp4 and press "o"pen,
> it didnt work. but it was an idea.

What did it do? Did mplayer.exe open, but not with the requested file? Did ZTreeWin flicker, or anything at all happen?

> how can I pass variables from one batch to another?

Exactly like you did it should work fine. I don't think the command-line parameters are the problem here.

I'm guessing here, but I think you problem lies in the call to "video.bat". I’m assuming that it’s located in the same directory as MP4.BAT, ZTreeWin's home directory.

But when you press [O]pen on an MP4 file in ZTreeWin, MP4.BAT will be called from the MP4 file's directory. So unless your ZTreeWin's home directory is present in the search path, VIDEO.BAT will not be found.
The easiest workaround is to include the full path to VIDEO.BAT in MP4.BAT, like this:

"%#ZTHome%\VIDEO.BAT" %1

Of course, the problem could also be that it's mplayer.exe which cannot be found in the search path; in which case the same remedy should be applied: specify the full path to mplayer in VIDEO.BAT.


Thread locked

Messages in this Thread

94,751 Postings in 11,947 Threads, 348 registered users, 11 users online (0 registered, 11 guests)
Index | Admin contact |   Forum Time: Feb 25, 2020 - 11:11 am EST  |  Hits:30,125,393  (5,001 Today )
RSS Feed