INTERACT FORUM
More => Old Versions => Media Jukebox => Topic started by: Scronch on July 29, 2002, 08:58:17 pm
-
Starting a new post, because the other one is too cluttered.
1) When running mjextman.exe commands from a .bat file, does it matter what directory the commands are executed from (does 'cd %temp%' make sense)?
2) Any way to stop 'mjextman.exe /Append' from starting MJ if it isn't running? In other words, have it behave like a Command Parameter? A 'NoAutoRun' parameter would be great, or maybe there's already a workaround?
Thanks.
Scronch
-
2a) I just realized that my batch files perform a /Clear DontRemoveCurrent, and then the /Append. If a 'NoAuotRun' parameter would apply to the /Clear as well, or a similar workaround, that would help. I also start with a /Mode Minime which could use the same parameter, but I could set up different files for manual startup vs. scheduled tasks if necessary.
Scronch
-
Never mind on (2) and (2a). I'd still like to know about (1), though.
Scronch
-
...pah dump bump...
-
Does it matter where these batch scripts are run (should I use 'cd %temp%')?
Scronch
-
It probably depends if you use relative paths or not. With absolute paths, the commands will work from anywhere.
And honestly, it sounds like you know more about BAT files than anyone else I've ever met. We should be asking you the questions...
-Matt
-
Scronch,
1) When running mjextman.exe commands from a .bat file, does it matter what directory the commands are executed from (does 'cd %temp%' make sense)?
If you specified full path to the executable, then the location of BAT file would not matter.
Nikolay
-
Thanks for the replies!
My calls to MJ are absolute, e.g. "C:\Program Files\J River\Media Jukebox\mjextman.exe" /Mode Minime
Some of my .bat files call one another within the initial directory, without absolute paths. But I am not worried about error dumps, etc., from these files. My main concern was whether MJ would dump a lot of error files into that directory if it crashed. Based on your posts, clearly not.
Thanks!
Scronch