Solved

command line arguments

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

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

Suggested Solutions

Title # Comments Views Activity
Vb.net Listview 9 78
Problem to the message 13 63
Macro which automatically sends attachment to Outlook 14 52
How does CurrentUser work? 10 25
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now