Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-01-2004, 11:44 AM   #1
Member (6 bit)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 46
splat VB.Net Question

This may be a silly question. How do you pass parameters to an executable written in VB.net? Using the command line it is easy to pass filenames to a vbscript.

For example here is code in a *.cmd file:
WScript C:\test.vbs %1

Here is the code in the script to call that parameter:
Set objArgs = WScript.Arguments
vFilename = objArgs(i)

All you have to do is drop the file on the script and it runs with that file as the parameter.

Is it possible to have a similiar setup for an executable?
test.exe %1

I can't find anywhere where it would accept a parameter in this fashion.

THANKS!!!!!

Why not just use vbscript? As the programs become more complex I would like to use .Net architecture...
ellio514 is offline   Reply With Quote
Old 08-02-2004, 08:32 AM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
The answer is here.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2