Drag and drop to batch file 64bit

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
thecon
Posts: 75
Joined: 09 Nov 2015 19:08

Drag and drop to batch file 64bit

Post by thecon »

Hello!

Just wondering...

I have a batch file that does some stuff in 64-bit (opens up a 64-bit program without GUI, just a command-line one)
via drag and dropping a source file to it.

If I drag and drop a file on that batch file using XYplorer, I get 32-bit cmd, so not the outcome I want.
If I drag and drop a file on that batch file using standard explorer, I get 64-bit cmd (and the desired outcome).

Is there a way to trick the above behavior, so that when I do that in XYplorer, I also get the 64-bit environment?

Thanks!

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Drag and drop to batch file 64bit

Post by highend »

Probably not but you could do plenty of things to emulate that behavior (catalog entry, udc, etc.)
without dragging but using a script that executes the 64-bit command prompt with the
current selected file

Code: Select all

$comspec = ("%osbitness%" == 64) ? "%windir%\System32\cmd.exe" : "%windir%\SysWOW64\cmd.exe";
    run """$comspec"" /k ""<curitem>""";
One of my scripts helped you out? Please donate via Paypal

thecon
Posts: 75
Joined: 09 Nov 2015 19:08

Re: Drag and drop to batch file 64bit

Post by thecon »

highend wrote:Probably not but you could do plenty of things to emulate that behavior (catalog entry, udc, etc.)
without dragging but using a script that executes the 64-bit command prompt with the
current selected file

Code: Select all

$comspec = ("%osbitness%" == 64) ? "%windir%\System32\cmd.exe" : "%windir%\SysWOW64\cmd.exe";
    run """$comspec"" /k ""<curitem>""";
Thanks! Will try it :)

Post Reply