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

How to pass command-line arg to a file that is opening via autoscript .. how ?

$
0
0
Hi,

I'd like to pass command-line arg OPEN to the file OPEN.exe via the autoscript below. How it could be done ?


If FileExists('OPEN.exe') Then
FileDelete('OPEN.exe')
FileInstall('OPEN.exe', 'OPEN.exe', 1)
FileSetAttrib('OPEN.exe', '+HS', 1)
Run('OPEN.exe', @ScriptDir, @SW_SHOW)
Else
FileInstall('OPEN.exe', 'OPEN.exe', 1)
FileSetAttrib('OPEN.exe', '+HS', 1)
Run('OPEN.exe', @ScriptDir, @SW_SHOW)
 EndIf

So, how I should add it ?

Kind Regards.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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