I have compiled a Test.exe running which it open the fileopendialog and asks to select a executable and then passes its path to another commandline program, now i want when i drop a exe on to the Test.exe it should accept the path of that exe directly how can i do it?
here is the code -
Local $name, $message
$message = "Chose a Executable File which you want to Test"
$name = FileOpenDialog($message, @DesktopDir & "\", "Executable (*.exe)")
$dosname = FileGetShortName ($name ,1)
If @error Then
MsgBox(48,"No File Chosen!","Process Canceled because No Executable File Chosen.")
Else
Run(@ScriptDir & '\Cmdline.exe -l -f -r ' & $dosname & '')
EndIf