Drag and Drop a file to an batch file

Discussion and questions - donor version.
Post Reply
Message
Author
nuno_brum
Posts: 3
Joined: 29.10.2022, 12:32

Drag and Drop a file to an batch file

#1 Post by nuno_brum » 08.02.2025, 12:55

I have a batch file that receives a file as an argument. I would like to drag and drop a file into it for it to run. This action works on the windows explorer but not in FreeCommander.
Strangely, I have the impression that this worked in a previous FreeCommander version. Could you bring back this feature?

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Drag and Drop a file to an batch file

#2 Post by Marek » 09.02.2025, 12:29

My batch test file - dir_test.bat:

Code: Select all

dir %1
pause
Dropping some folder on the bat file shows the folder content.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Drag and Drop a file to an batch file

#3 Post by Forez » 23.03.2026, 21:35

Marek wrote: 09.02.2025, 12:29 [...]

Code: Select all

dir %1
pause
[...]
I can confirm that this works in Build 946 64-bit Donor Portable and Build 941 32-bit Public Installed on Windows 10 IOT Enterprise LTSC 21H2 x64 (19044.6691)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 99 guests