Cmd run in foreground

Simple question … hope simple answer.
Is there a way to execute an action that launch client-side Internet Explorer in foreground ?
Something like

wait cmd /c "c:\program files\internet explorer\iexplore.exe" "http://www.google.com"

Thanks

If you don’t invoke it through “cmd” then yes a window will open. However the command should be run as whoever the current user is or else the IE window will be opened by SYSTEM.

prefetch RunAsCurrentUser.exe sha1:9fd47b14aee681a6bad6579d30d6fb3fa4cc3ae3 size:131072 http://support.bigfix.com/download/bes/util/RunAsCurrentUser.exe

if {exists current user}
wait __Download\RunAsCurrentUser.exe "c:\program files (x86)\internet explorer\iexplore.exe" "http://www.google.com"
endif

Try and start using the new method other than RunAsCurrentUser with the override command. See https://developer.bigfix.com/action-script/reference/execution/override.html

1 Like

Hi!
jmaple method works :smile:

I tried to replicate the same behaviour with override command using

    override wait
    runas=currentuser

but client hangs :frowning:

1 Like

Do you want the client to wait for the user to close the browser?

Try:

override run
RunAs=currentuser
run "c:\program files (x86)\internet explorer\iexplore.exe" "http://www.google.com"
2 Likes