Shell Type MisMatch

Posted on 2003-02-23
Medium Priority
Last Modified: 2012-05-04
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

Question by:Marcusw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 8005881
Shell ("c:\ProgramUpdate.exe", vbHide
LVL 18

Expert Comment

ID: 8005883
Shell  "c:\ProgramUpdate.exe",  vbHide

Accepted Solution

JohnMcCann earned 200 total points
ID: 8005887
Sorry should be

Shell "c:\ProgramUpdate.exe", vbHide

You were saying

shell "c:\ProgramUpdate.exe" = vbHide

which evaluates to

shell false


Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question