Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 516
  • Last Modified:

Shell Type MisMatch

i have built a little app that when my main app load it checks for updates. if there are any then in runs the following command.

Shell ("c:\ProgramUpdate.exe" = vbHide)

the problem is i keep getting a type mismatch error when it runs.

if i remove the "= vbHide" it works

i have tried it as a number as well i.e. "= 1" to no avail.

i have also tried it on other settings i.e. vbNormalFocus

non of them work

any ideas

thanks
0
Marcusw
Asked:
Marcusw
  • 2
1 Solution
 
JohnMcCannCommented:
Shell ("c:\ProgramUpdate.exe", vbHide
0
 
bobbit31Commented:
Shell  "c:\ProgramUpdate.exe",  vbHide
0
 
JohnMcCannCommented:
Sorry should be

Shell "c:\ProgramUpdate.exe", vbHide

You were saying

shell "c:\ProgramUpdate.exe" = vbHide

which evaluates to

shell false

0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now