Jump to content

run($myVariable &) Problem


Recommended Posts

Hello. Something isn't quite right with my syntax below.

run($myVariable &)

fails with: error in regular expression

$myVariable is a string containing the variable of the run(). ie @ComSpec &....the rest of the url.

So, run($myVariable &) should read run(@ComSpec &....the rest of the url)

Please help, thank you.

Link to post
Share on other sites

1

if you notice you post above, the "link" is underlined... that means normally one can click that link and open that HTML page, however your posted link does not work

2

the easiest way is to use

$myVariable = " MY-CORRECT-LINK.COM"

Run( @ComSpec & $myVariable, "", @SW_HIDE)

3

to use your $myVariable only... then you need to do this

Dim $myVariable[5]

$myVariable[1] = @ComSpec 
$myVariable[2] = " /c Start http://domino.keybank.com/ens/emcid%20refe...D/aServer"
$myVariable[3] = ""
$myVariable[4] = @SW_HIDE


Run($myVariable[1] & $myVariable[2], $myVariable[3], $myVariable[4])

BUT, as i said YOUR LINK IS DEAD

so, for testing

Dim $myVariable[5]

$myVariable[1] = @ComSpec 
$myVariable[2] = " /c Start http://www.autoit3.com"
$myVariable[3] = ""
$myVariable[4] = @SW_HIDE


Run($myVariable[1] & $myVariable[2], $myVariable[3], $myVariable[4])

this works

8)

NEWHeader1.png

Link to post
Share on other sites

valuater, you're AWESOME! actually on my intranet the link does work and you're above code works flawlessly! Thanks so much! By the way, you're in california??? past you're bedtime isn't it? (I'm from san juanquin county - stockton area). I miss it!

Link to post
Share on other sites

BUT, as i said YOUR LINK IS DEAD

Actually, as opposed to the link being incorrect, I find that it is the hyperlink parsing mechanism for the autoitscript forums to be the culprit of your incautious accusations. If you look at the underlined hyperlink, it reads:

http://domino.keybank.com/ens/emcid%20refe...D/aServer"

That double-quotes character at the end of the link is fudging up the whole thing. As with all shortcuts, those that are created imprecisely can be less helpful than if they didn't exist altogether. Your exposé should therefore read:

"BUT, as i said YOUR LINK PARSER IS DEAD"

[u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...