Solved

command line arguments

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 69
Windows 10 start screen issues 9 54
Problem to With line 4 56
MS Access 03, TransferText, decimal places 8 67
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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

816 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