Forum Moderators: coopster
i am trying to write php code that automatically closes and relaunches internet explorer but can't seem to find information on how to do it.
i have a button that when clicked it executes a file but i would also like the users browser to be closed and re-opened automatically.
does anybody know how to do this or have any sample code i could try,
thanks,
scoobie
<? $sshell=new COM("WScript.Shell"); $doExec=$sshell->Run("iexplore.exe",3,true); ?> Assuming security is really loose on the user's machine (not likely after SP2), this creates and runs a shell script using WScript, within which the request to run the executable is run.
I got nothing for NT/98/2000/Mac.
You're really into a sensitive area here, scoobie. Running an application on the user's machine from a web page is typically viewed as an EXTREME security hazard, and pretty much everyone will have their settings set to disallow this.
Why do you want to close and reopen the browser, anyway?