I am writing a batch script file to process audio/video files and added an icon to the toolbar to run it. The idea being to select the files and then click the button which runs the script which gets all the selected full pathed files as arguments.
This works ok for the most part, however, I've noticed that once the number of files is large enough and the path and/or file names are long enough, the path is removed from the arguments.
Here is a minimal example batch file to demonstrate:
The testit.cmd:
Here is the command from the toolbar icon:@echo off
echo %*
pause
I created the following folder/files: Clicking my toolbar icon after selecting 1 file gives the expected result: Clicking my toolbar icon after selecting all the files gives the file names but the paths are gone: For this example selecting a smaller numbers of files works. The point at which the paths are dropped seems to vary depending on the length of the paths/files and their number. Running the batch from the command line (outside of XY) with the full pathed files as arguments works ok.openwith '"d:\users\john\documents\software\audio visual\mkvtoolnix\testit.cmd"', s
Is this expected behaviour? Am I doing something wrong?
Cheers
John