Page 2 of 2
Re: How to use openwith <items>
Posted: 29 Apr 2013 18:10
by binocular222
Thanks FluxTorpedoe, It works.
Quoting is always my headache, I feel that XYplorer' quoting rules is more complex than other programming languages.
Re: How to use openwith <items>
Posted: 29 Apr 2013 18:44
by Filehero
binocular222 wrote:Quoting is always my headache,
Yep, that's why I always define the target run commands before I start scripting. Combined with a simple
this really speeds up scripting this sort of stuff.
binocular222 wrote:, I feel that XYplorer' quoting rules is more complex than other programming languages.
Yes an no.
The major part of the quote gallore is due the nature of the target command addressed. All Windows targets I know allow and/or require quoting of parameters (the standard example is paths containing spaces). Powershell even allows array parameters which simply are comma separated value enums enclosed by quotes. And now consider an array of windows paths to be passed to see the troubles you can get just by running the script.
The second part is a generic challenge as well: how to mask a control char (e.g. a double-quote) in the least troublesome way? It doesn't matter what way you choose it always gets awkward at some point.
Cheers,
Filehero
Re: How to use openwith <items>
Posted: 29 Jun 2014 09:22
by kotlmg
hello sir, i want to queue files to zoom player playlist.
command line option for queuing is
Queue path/file into the playlist (when Zoom Player is already open).
Example:
"c:\program files\zplayer\zplayer.exe" "/queue:e:\my video files\"
i have written the script as
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" "/queue:<items>\"
when i run the code i am getting 0 /0 error. can you please correct the above script. basicaaly i want to add selected files to the existing play list.
"PFA : MPC"
run """E:\4Media\Player\Media Player Classic HomeCinema x86\mpc-hc.exe"" /add ""<pfaitem>"""
what should be the above code for zoom player?
Re: How to use openwith <items>
Posted: 29 Jun 2014 12:17
by PeterH
Seems you correctly added leading double quotes, and doubled the first quote-group.
But you didn't double the 2nd group, and missed the trailing double-quotes?
So maybe:
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" ""/queue:<items>\""";
(Didn't read documentation...)
Re: How to use openwith <items>
Posted: 02 Jul 2014 11:57
by kotlmg
thanks
Re: How to use openwith <items>
Posted: 19 Mar 2015 02:36
by kotlmg
hello sir,
i am facing some problem with the following code for potplayer.
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
the above code is able to play the selected files for the first time only. 2nd time when i use the same code to run files in a already opened potplayer, it is not able to play the selected files.
hence i want you to modify the above code as
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
kill potplayer script
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
can you please give me the code to kill the potplayer process.
with regards,
Re: How to use openwith <items>
Posted: 19 Mar 2015 21:13
by totmad1
you could press F5 when PotPlayer is open this will open preferences.
click "General"
you will see "Multiple instances:"
click on down arrow and select "Disable:Play files in existing PotPlayer instance"
you can then run your XY script with all video/audio files selected with them being passed to playlist
HTH
Re: How to use openwith <items>
Posted: 20 Mar 2015 02:09
by kotlmg
thanks a lot.