Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to get the path of a file dropped on a autoit compoiled exe?

$
0
0

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
 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>