Jump to content
Sign in to follow this  
Falling

Anyone can help me out with a shell command ?

Recommended Posts

Falling

Shell "C:\Program Files\Client\Client.exe"

What do i need to add to this to make the .exe open up on top of windows instead of opening minimized?

Share this post


Link to post
Share on other sites
bshoenhair

Shell "C:\Program Files\Client\Client.exe" 

What do i need to add to this to make the .exe open up on top of windows instead of opening minimized?

<{POST_SNAPBACK}>

In Visual basic with AutoItX or in AutoIt ?

Do you want to set it topmost or not to open minimized ?

Share this post


Link to post
Share on other sites
Falling

In Visual basic with AutoItX or in AutoIt ?

Do you want to set it topmost or not to open minimized ?

<{POST_SNAPBACK}>

Umm not sure what you ment. But here is the solution:

Dim K As Double
K = Shell("C:\Program Files\cleint\Client.exe", vbNormalFocus)

It's odd with Vb6 because you can also just do something like this:

Shell "C:\Program Files\LocalServer\LocalServer.exe" which will open the exe. But for openin something in a certain way you have to use that function call.

Here is a new question though:

How do i get the system trey to auto-refresh itself?

if i use the Shell "taskkill /im LocalServer.exe" it leaves a ghost of the icon in the system tray.

Share this post


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
Sign in to follow this  

×