Solved

command line arguments

Posted on 1998-09-16
1
208 Views
Last Modified: 2010-04-30
can someone give me information on command line arguments.  I was under the impression that if i put a command line argument into my project and make an executable, I could run it from the Windows start menu and the command line would take effect.  I am unsure of how they work.  It is not working the way I thought it would.  I need information.  Thank You.
0
Comment
Question by:timpeters
[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
1 Comment
 
LVL 1

Accepted Solution

by:
fmismetti earned 80 total points
ID: 1435271
Command line in the project properties only works inside Visual Basic environment. You should use this only for debugging purposes.

If you need to pass a command line to your program, you need to create a shortcut to your program. Then, right click on the shortcut and edit the target changing to:

"c:\yourprogram\yourprogram.exe parameter1 parameter2"

Use the VB Command() function to retrieve the parameters.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

691 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