|
-
August 27th, 2001, 03:11 PM
#1
Opening exe's
I've currently used the code
Shell ("C:\Program.exe")
to open exe files, but for some reason they open minimized. How do I get them to open maximizes?
Jonathon.
-
August 27th, 2001, 04:34 PM
#2
Re: Opening exe's
Try:
shell("C:\program.exe", vbMaximizedFocus )
-
August 28th, 2001, 01:26 AM
#3
Re: Opening exe's
You can give one of the following as the second parameter, I think they are selfexplanable
vbHide
vbMaximizedFocus
vbMinimizedFocus <-- This is the default
vbMinimizedNoFocus
vbNormalFocus
vbNormalNoFocus
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
August 28th, 2001, 03:08 PM
#4
Re: Opening exe's
That's what I tried in the first page, but you get the error Expected: =
. What could I do to get it working, or have I just made a BIG mistake somewhere?
Jonathon.
-
August 28th, 2001, 03:18 PM
#5
Re: Opening exe's
Sorry... since the syntax I used was for a Function (as opposed to a Sub()) the compiler is expecting a return value. You can use either of the following:
dim dblProcess as double
dblProcess = Shell("C:\SomeProgram.exe", vbMaximized)
or
Shell "C:\SomeProgram.exe", vbMaximized
-
August 29th, 2001, 09:17 AM
#6
Re: Opening exe's
just type in the following code
Shell ("C:\Program.exe"),Vbmaximised
.
this will open the exe in maximised form
-
August 30th, 2001, 01:36 AM
#7
Re: Opening exe's
I've tried all the suggestions listed so far and none of them seem work. Is there anything I have to enable in the "Project-->Resouses" menu, or prehaps I need to have a certain setting in the properties of the form?
This is really strange,
Jonathon.
-
August 30th, 2001, 04:03 AM
#8
Re: Opening exe's
u can try with this
Shell "c:\xxx\xxx.exe", vbMaximizedFocus
i am using this and it works
-
September 14th, 2003, 01:11 AM
#9
I have had this similair problem, and I tried using the last example that someone posted. the program i am trying to open is Elma.exe. And when i click the button that is supposed to go to it, it get "ELMA.RES missing!" , even though i can physically see the file, and run elma.exe on it's own.
-squaK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|