A drag and drop function from a bat file -


so i'm trying launch 2 files dont on own rather need dragged , dropped onto program function, issue being people seem more interested in other way around , not launching files bat through program.

so looks i'm trying do.

file1.pk3 + file2.wad -> program.exe

any great

i hoping use bat file perform drag , drop function .pk3 file level , .wad moded game mode , in order function needed dropped onto main program.

if wanting drop file onto batch file , have batch file meaningful, can use %1. no different executing batch file "dragged" file parameter.

try this:

droponme.bat

@echo off echo opening %1 in notepad. echo please close continue. notepad.exe %1 echo closed it.  thanks! pause 

helloworld.txt

hello world! 

try dropping helloworld.txt onto droponme.bat. should open text file. try running droponme helloworld.txt command line (in same directory files). should see exact same results.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -