Solved

command line arguments

Posted on 1998-09-16
1
206 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…

828 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