Sign in to follow this  
Followers 0
ph34r

%ProgramFiles% Command for Autoscript?

6 posts in this topic

Im trying to run a program when u start the autoitscript but since some people have C Drives and D drives even F Drives, the prorgam i want to launch might be on any of those

In vb.net

this is how you would do it

Dim reg

reg = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\K2 Network\War Rock", "install path", "")

Shell(reg & "\System\WarRock.exe 0 0")

How would i do it in Autoscript?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

tyvm can you help me in my other thread? its two down

So i would do

Run('@ProgramFilesDIR\Warrock\WrLauncher.exe')

Edited by ph34r

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Yes it worked! ty! what do the " ' " 's do in the run command?

Edited by ph34r

Share this post


Link to post
Share on other sites

They specify that those characters are part of a String and not an Autoit command.

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