Jump to content

Run Command


para
 Share

Recommended Posts

I want my program to start internet explorer with my specified page already inputed.

The problem I run into is that some of the sites contain "=" signs and that is causing a problem.

Run("explorer http://www.mysite/com/1142312=click/")

That = sign before click makes it think that I want to run directory "click" and causes it not to work.

I am 100% sure the = sign is what is messing it up, I have done alot of testing.

This is beating my head in :D ... is this a bug?

What can I do to fix this?

Thanks a ton! :idiot:

-Para :lol:

Link to comment
Share on other sites

Maybe, Run("explorer 'http://www.mysite.com/1142312=click/'") ?

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

Naw same error just this time the site is in quotes. It talks about "Invalid Directory..."

I tried what you mentioned, thanks for tryin to help out. Anyone else got any ideas?

-para

<{POST_SNAPBACK}>

Hell test this dos comand pls i hope that help you out :idiot:

$rc = _RunDOS("start http://www.DirtyBanditos.de.vu/")
Link to comment
Share on other sites

Giving the job to Start program

$site = 'http://www.hiddensoft.com'
Run(@comspec & ' /c start ' & $Site,'',@sw_hide)

Calling the dll directly.

_ShellExecuteDllCall('http://www.hiddensoft.com', '', '', '')

Func _ShellExecuteDllCall($sCmd, $sVerb, $sArg, $sFolder)
   Local $aRet
   
   $aRet = DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", $sVerb, _
         "string", $sCmd, "string", $sArg, "string", $sFolder, "long", @SW_SHOWNORMAL)
   Return $aRet[0]
EndFunc  ;==>_ShellExecuteDllCall
Edited by ezzetabi
Link to comment
Share on other sites

Giving the job to Start program

$site = 'http://www.hiddensoft.com'
Run(@comspec & ' /c start ' & $Site,'',@sw_hide)

Calling the dll directly.

_ShellExecuteDllCall('http://www.hiddensoft.com', '', '', '')

Func _ShellExecuteDllCall($sCmd, $sVerb, $sArg, $sFolder)
   Local $aRet
   
   $aRet = DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", $sVerb, _
         "string", $sCmd, "string", $sArg, "string", $sFolder, "long", @SW_SHOWNORMAL)
   Return $aRet[0]
EndFunc  ;==>_ShellExecuteDllCall

<{POST_SNAPBACK}>

Hello ezzetabi,thx for your dll call exampel i a newbie on it :idiot: Edited by DirtyBanditos
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...