Solved

call command line function in VB

Posted on 2001-06-15
2
180 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Share codes 68 115
VB error "Type mismatch" 2 43
VBA/SQL - Connect to SQL server and pull data 4 67
How does CurrentUser work? 10 25
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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now