Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Command Line Arguments

Posted on 1999-06-28
5
Medium Priority
?
214 Views
Last Modified: 2010-05-02
This is probably a very easy question, but I just don't have the time to find it out for myself.

How do I pass command line arguments to a VB6 Compiled App?

A small example would be most usefull,

Cheers

Darren
0
Comment
Question by:RandomTask
[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
  • 2
5 Comments
 

Accepted Solution

by:
gshriki earned 80 total points
ID: 1520179
pass the perameters in the usual way, and catch it in VB with the Command function.
0
 

Author Comment

by:RandomTask
ID: 1520180
Perfect, Thanks

I Knew It Would Be Something Simple!

0
 
LVL 22

Expert Comment

by:ture
ID: 1520181
RandomTask,

Pass the parameter to your application like this:

  Start - Run - c:\test\testapp.exe This is my parameter

In VB6, you access the parameter with Command. Something like this, perhaps...

  Private Sub Form_Load()
    Text1.Text = Command
  End Sub

Ture Magnusson
Karlstad, Sweden
0
 

Author Comment

by:RandomTask
ID: 1520182
Ture,

A Touch Too Late With This One I'm Afraid!!

Darren
0
 
LVL 22

Expert Comment

by:ture
ID: 1520183
Darren,

I'll be quicker next time...

/Ture
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…
Suggested Courses

704 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