|
 |
asp_databases thread: Running VB Exe With Arguments -Urgent
Message #1 by "Frankie, Loh Teck Seng" <lohts@p...> on Mon, 20 Nov 2000 17:13:45 +0800
|
|
Greeting;
Ah, this thing is cracking my head, but has anyone try to run VB exe file
with arguments passed over to the exe file. The reason why I asked this is
because we have a set of libraries written in VB and some of the routine is
applicable to ASP and I am thinking to put a wrapper around the libraries
and call from ASP.
Greatly appreciate if someone can give me a hint as how to pass arguments
to VB EXE file.
Thanks.
Message #2 by "jigs gandhi" <newsgroup@h...> on Tue, 21 Nov 2000 10:53:47 +0530
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_010D_01C053A9.52EE47E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi,
you will have to recreate the exe file to give an interface where you
can pass the variables used in your exe file from outside.
PUT AND GET for variables you want to use.
so that you can set the variables at runtime as
myObject.myVariable =3D "value"
jigs
----- Original Message -----
From: Frankie, Loh Teck Seng
To: ASP Databases
Sent: Monday, November 20, 2000 2:43 PM
Subject: [asp_databases] Running VB Exe With Arguments -Urgent
Greeting;
Ah, this thing is cracking my head, but has anyone try to run VB exe
file
with arguments passed over to the exe file. The reason why I asked
this is
because we have a set of libraries written in VB and some of the
routine is
applicable to ASP and I am thinking to put a wrapper around the
libraries
and call from ASP.
Greatly appreciate if someone can give me a hint as how to pass
arguments
to VB EXE file.
Thanks.
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
$subst('Email.Unsub')
Message #3 by "jigs gandhi" <newsgroup@h...> on Tue, 21 Nov 2000 11:45:14 +0530
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0118_01C053B0.82FAD500
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi,
what ever arguments you pass to an VB EXE program are available inside
the EXE file
Private Sub Form_Load()
Dim jignesh As String
jignesh =3D Command
MsgBox jignesh
Unload Me
End Sub
try this code. make an exe file and pass it some arguments
what ever arguments you pass are available to you as string in "Command"
BTW how do you plan to use your VB EXE in your asp page. do tell me
jigs
----- Original Message -----
From: Frankie, Loh Teck Seng
To: ASP Databases
Sent: Monday, November 20, 2000 2:43 PM
Subject: [asp_databases] Running VB Exe With Arguments -Urgent
Greeting;
Ah, this thing is cracking my head, but has anyone try to run VB exe
file
with arguments passed over to the exe file. The reason why I asked
this is
because we have a set of libraries written in VB and some of the
routine is
applicable to ASP and I am thinking to put a wrapper around the
libraries
and call from ASP.
Greatly appreciate if someone can give me a hint as how to pass
arguments
to VB EXE file.
Thanks.
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
$subst('Email.Unsub')
Message #4 by "Mike Scott" <jstmehr4u3@h...> on Tue, 21 Nov 2000 06:59:11 -0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C05388.8D646B00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi,
the SaveSetting() and GetSetting() will store the variables in your
registry. You can also just pass the variables through the command line.
Like when you run PING.EXE -T , "-T" is the command line switch. The
code will look something like this:
(forgive me its early in the morning here =3D)
Sub Form_Load()
if Command$ =3D "" then
msgbox("There is no Command Line Switch")
end if
if len(command$)>1 then
variable1 =3D mid(command$,1,"/")
end if
basically you can see what I am trying to do. Command$ is the VB
function for Command Line Switch. Anything that is ran with the EXE will
be held in this variable. You will also have to break the variable up
with "/" or "-" or anyothere delimeter if you are gonna use more then
one variable.
Hope this helps!
Mike
----- Original Message -----
From: jigs gandhi
To: ASP Databases
Sent: Monday, November 20, 2000 9:23 PM
Subject: [asp_databases] Re: Running VB Exe With Arguments -Urgent
hi,
you will have to recreate the exe file to give an interface where you
can pass the variables used in your exe file from outside.
PUT AND GET for variables you want to use.
so that you can set the variables at runtime as
myObject.myVariable =3D "value"
jigs
----- Original Message -----
From: Frankie, Loh Teck Seng
To: ASP Databases
Sent: Monday, November 20, 2000 2:43 PM
Subject: [asp_databases] Running VB Exe With Arguments -Urgent
Greeting;
Ah, this thing is cracking my head, but has anyone try to run VB exe
file
with arguments passed over to the exe file. The reason why I asked
this is
because we have a set of libraries written in VB and some of the
routine is
applicable to ASP and I am thinking to put a wrapper around the
libraries
and call from ASP.
Greatly appreciate if someone can give me a hint as how to pass
arguments
to VB EXE file.
Thanks.
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software
Development,
Web Development, Networking & Communications, and Hardware &
Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
newsgroup@h...
$subst('Email.Unsub')
---
FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS
IN YOUR INBOX!
Get the latest and best HTML, XML, and JavaScript tips, tools, and
developments from the experts. Sign up for one or more of EarthWeb's
FREE IT newsletters at http://www.earthweb.com today!
$subst('Email.Unsub')
|
|
 |