ph34r Posted July 11, 2008 Share Posted July 11, 2008 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? Link to comment Share on other sites More sharing options...
James Posted July 11, 2008 Share Posted July 11, 2008 @ProgramFilesDIR Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
ph34r Posted July 11, 2008 Author Share Posted July 11, 2008 (edited) tyvm can you help me in my other thread? its two down So i would do Run('@ProgramFilesDIR\Warrock\WrLauncher.exe') Edited July 11, 2008 by ph34r Link to comment Share on other sites More sharing options...
James Posted July 11, 2008 Share Posted July 11, 2008 tyvm can you help me in my other thread? its two downSo i would doRun('@ProgramFilesDIR\Warrock\WrLauncher.exe')Run(@ProgramFilesDIR & '\Warrock\WrLauncher.exe') Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
ph34r Posted July 11, 2008 Author Share Posted July 11, 2008 (edited) Yes it worked! ty! what do the " ' " 's do in the run command? Edited July 11, 2008 by ph34r Link to comment Share on other sites More sharing options...
NELyon Posted July 12, 2008 Share Posted July 12, 2008 They specify that those characters are part of a String and not an Autoit command. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now