Sign in to follow this  
Followers 0
6329030

Run .exe with variable parameters

4 posts in this topic

Hello

Can run exe with variable parameters ?? :

$1 = 5
$2 = 4 
ShellExecute("program.exe","$1 $2")

This dont work ;(

Share this post


Link to post
Share on other sites



Hi 6219030,

actually your giving your Program two parameters. First is "$1" second is "$2".

Try changing to: $1 & " " & $2

Regards,

Hannes

:)


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

Try this:

$p0 = "127.0.0.1"
$p1 = " -n 20"
$p2 = " -l 1024"
ShellExecute("ping.exe",  $p0 & $p1 & $p2)

Leave blanks between the parameters!

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0