Search found 3 matches

by mt_mt
01 May 2022 22:17
Forum: DOS Batch Forum
Topic: drag and drop multiple file on a bat file
Replies: 4
Views: 5225

Re: drag and drop multiple file on a bat file

found the behaviour i would like it to be after i remove the "start"

c:
cd xxxxxx(directory where the program)

for %%i in (%*) do xxxxx(program exe file name) %%i

Thank you very much.

Regards,
mt
by mt_mt
01 May 2022 21:43
Forum: DOS Batch Forum
Topic: drag and drop multiple file on a bat file
Replies: 4
Views: 5225

Re: drag and drop multiple file on a bat file

Hi Steffen, Thank you able to make it work. was trying to make a program (not notepad) to run multiple files by batch. But i realize it will open and run the program same times together. My silly way C:\Windows\notepad.exe %1 C:\Windows\notepad.exe %2 will make the program run first file (%1) then s...
by mt_mt
01 May 2022 05:12
Forum: DOS Batch Forum
Topic: drag and drop multiple file on a bat file
Replies: 4
Views: 5225

drag and drop multiple file on a bat file

Hi All, I would like to ask some tips how to do this, trying to drag and drop mulitple files on a bat file that run a program. My bat file is like this, so far it only will open two text files i drap and drop. What if i want to open ten or more text files? tried to google but just really can't get i...