Solved

Command()

Posted on 2004-09-01
2
170 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

762 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

8 Experts available now in Live!

Get 1:1 Help Now