Link to home
Start Free TrialLog in
Avatar of RandomTask
RandomTask

asked on

Command Line Arguments

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
ASKER CERTIFIED SOLUTION
Avatar of gshriki
gshriki

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RandomTask
RandomTask

ASKER

Perfect, Thanks

I Knew It Would Be Something Simple!

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
Ture,

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

Darren
Darren,

I'll be quicker next time...

/Ture