Solved

call command line function in VB

Posted on 2001-06-15
2
194 Views
Last Modified: 2010-05-02
Is there a function in VB to execute a DOS style command?

I wanted to call the registration command

regsvr32 "C:\mydll.dll"

programmatically from within a VB program without launching a DOS window or batch program?
0
Comment
Question by:need_help_00
2 Comments
 
LVL 18

Accepted Solution

by:
deighton earned 50 total points
ID: 6195050
Shell "regsvr32 ""C:\mydll.dll"""
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 6195198
Hi

Shell "regsvr32 ""C:\mydll.dll""" ,vbHide

Will hide the dos window.

Zaphod.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

735 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