Solved

call command line function in VB

Posted on 2001-06-15
2
198 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
[X]
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 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

737 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