Page 1 of 1

Drag and drop to batch file 64bit

Posted: 04 Nov 2017 09:15
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!

Re: Drag and drop to batch file 64bit

Posted: 04 Nov 2017 09:35
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>""";

Re: Drag and drop to batch file 64bit

Posted: 04 Nov 2017 09:47
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 :)