|
-
May 28th, 2000, 12:05 PM
#1
Calling a vb exe with Parameters
Currently have a vb App that loads data into Excel. Is called from a Universe Environment using SB+. Is it possible to call the vb app and pass it a DOS filename..
sort of like
Execute "c:\Excel\vb.exe c:\filename.csv"
What would be the format.
Thanks in Advance
-
May 28th, 2000, 02:11 PM
#2
Lively Member
CommandLine Parameters
Sure mate...
Very possible.. from what i understand you want to pass commandline parameters to a VB program.. well for test n learning purposes open up your project properties.. u'll get to see a text box for commandline parameters under the "Make" tab. Fill in your parameters here..
then in code access them using the Command Function That should solve your problem!
Ex:
'Get command line arguments.
CmdLine = Command()
Cheers
Gaurav
[email protected]
" Programming today is a race between software-engineers striving to build bigger and
better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far the universe is winning". :-)
-
May 29th, 2000, 09:07 AM
#3
Thanks Gaurav
Will try it out once l can get this friggin laptop to boot.......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|