issue1: .bat file arguments don't work with Open With dialogue
issue2: "%~n1-R.mp4" style argument does not work either (it works inside .bat file)
This is content of mp4-rot.bat
ffmpeg -i %1 -metadata:s:v rotate="%2" -codec copy "%~n1-R.mp4"
Open With does not work with .bat files and %1 style arguments
Moderators: helmut, XnTriq, xnview, Dreamer
Re: Open With does not work with .bat files and %1 style arguments
does it work in other apps with similar 'Open with' functionality: ImageGlass, FastStone, Imagine, etc?
Re: Open With does not work with .bat files and %1 style arguments
In faststone the .bat file worked so I didn't have to put commands directly to the dialogue.user0 wrote: Fri Feb 21, 2025 6:39 am does it work in other apps with similar 'Open with' functionality: ImageGlass, FastStone, Imagine, etc?
Re: Open With does not work with .bat files and %1 style arguments
I tried this :
1) Create test.bat containing :
2) Create a "Open with ..."
Name = test,
Path = C:\my_own_path\test.bat
Arguments = A "B C D"
3) Select a jpg file, > Open with > test
I get a cmd window showing my 3 arguments:
... quotes are added to the full file name
1) Create test.bat containing :
Code: Select all
@echo off
echo start
echo : %1 : %2 : %3 :
echo stop
pause
Name = test,
Path = C:\my_own_path\test.bat
Arguments = A "B C D"
3) Select a jpg file, > Open with > test
I get a cmd window showing my 3 arguments:
Code: Select all
start
: "C:\my_filepath\file.jpg" : A : "B C D" :
stop
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm