Page 1 of 1

Cannot Run .BAT file in XY

Posted: 01 Nov 2024 03:25
by AgentSmith007
I just stumble upon bug. May be it is not a bug and I just need to change some settings. I am still learning XYplorer.

Anyway, I have following files in some folder:

1. AVmerge.bat file
2. FFmpeg.exe executable file
3. video.mp4 elementary video stream file
4. audio.aac elementary audio stream file

Here is content of the BAT file:

Code: Select all

ffmpeg.exe -i audio.aac -i video.mp4 -acodec copy -vcodec copy muxed.mp4
When I am in XY I right-click on BAT file and click Run as Administrator, CMD window flashes and nothing happens.
When I use Windows' File Explorer and do the same CMD window opens, process runs, then CMD window closes and I get muxed.mp4 file.

Any thoughts/suggestions?

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 08:49
by admin
What if you try the same from the 64-bit context menu? (Configuration | Other | Shell Integration | 64-bit Windows | Show the 64-bit context menu)

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 10:13
by highend
Won't work either, the .bat will not have the path from where it was executed => Doesn't find anything without a full path for the items to process

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 11:15
by PeterH
If you add a pause stmt as last line of the .bat it will not just terminate, so you can have a look on what it says.

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 12:34
by AgentSmith007
admin wrote: 01 Nov 2024 08:49 What if you try the same from the 64-bit context menu? (Configuration | Other | Shell Integration | 64-bit Windows | Show the 64-bit context menu)
That was already checked.

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 12:36
by AgentSmith007
highend wrote: 01 Nov 2024 10:13 Won't work either, the .bat will not have the path from where it was executed => Doesn't find anything without a full path for the items to process
All four files are in the same folder and it works in Windows' File Explorer.

Re: Cannot Run .BAT file in XY

Posted: 01 Nov 2024 12:40
by AgentSmith007
PeterH wrote: 01 Nov 2024 11:15 If you add a pause stmt as last line of the .bat it will not just terminate, so you can have a look on what it says.
Did that. This is what it says.
ffmpeg.jpg
This is screenshot (1/3 of the CMD window) when I run BAT file using File Explorer.
ffmpeg2.jpg