Solved

Command()

Posted on 2004-09-01
2
171 Views
Last Modified: 2010-05-02
Hi Expert,

Just a simaple question

  Dim cmdLine As String
  cmdLine = Command()

Could you please brief explain the purpose for this code?

Thanks
kchoed
0
Comment
Question by:kchoed
2 Comments
 
LVL 10

Expert Comment

by:anv
ID: 11950386
command()
'returns the argument portion of the command line..
so cmdline is storing that
0
 
LVL 8

Accepted Solution

by:
mladenovicz earned 50 total points
ID: 11950468
When you try to call your vb app from commandline for example

ApplicationName Parameters


Command will contain Parameters

MyProject C:\Test

Command = C:\Test
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

813 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

13 Experts available now in Live!

Get 1:1 Help Now