[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

command line arguments

Posted on 1998-09-16
1
Medium Priority
?
210 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 320 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

656 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