Ronald,
Are you on our EU miailing list?
The fork tool. The tool comes in two parts: the first being a special
socket. The second is a T handle with a socket end that the socket fits too.
To buy write to michelle@r... - we get 10% discount there
- just mention the VX800 list discount and it shall be yours.
Now we do have a 'borrowing' tool - but the handle is long and awkward to
send, the socket is easy. The rules are for borrowing tools - you pay the
postage one way - the onwards leg.
Up to you
Brian
At 00:04 28/11/2002 +0000, you wrote:
>-----------------------------------------------
>When replying to the digest, please quote only
>relevant material, and edit the subject line to
>reflect the message you are replying to.
>-----------------------------------------------
>
>The URL for this list is:
>http://p2p.wrox.com/list.asp?list=3Dpro_vb
>PRO_VB Digest for Wednesday, November 27, 2002.
>
>1. RE: Running same package concurrently
>2. Reading Mapi Attachments
>3. sql increment field
>4. Re: sql increment field
>5. Re: sql increment field
>6. RE: sql increment field
>7. RE: Running same package concurrently
>8. VB and cmd.exe
>9. VB and cmd Part 2
>10. Re: VB and cmd.exe
>11. Re: VB and cmd Part 2
>
>----------------------------------------------------------------------
>
>Subject: RE: Running same package concurrently
>From: "Coral Johnson" <coral.johnson@r...>
>Date: Wed, 27 Nov 2002 13:56:34 +1000
>X-Message-Number: 1
>
>Talon
>
>I understand that you want to run the same vb project in two intances of
VB.
>I'm not sure whether that should work or not, but there may be another way
>to accomplish what you want.
>
>Create an exe of your project, and start the exe.
>Open up your project in VB, and run it in the environment.
>Now you will be running 2 copies of your program, although one is compiled
>and one not. This should allow you to test your multiuser functionality.
>
>I usually create the exe, then start 2 copies of the exe to do the same
>thing. But if you need to debug, then the previous way might work better.
>
>If this doesn't work, is it possible that you are testing for
>App.PrevInstance to prevent 2 copies of your program running on the same
>computer.
>
>Coral
>
> >
> > Richie, I am not running the exe but the source code.
> >
> >
> > -Talon
> >
> > --- Richard Ainsley <rainsley@p...> wrote:
> > > Did you try making the exe read only?
> > >
> > > ----- Original Message -----
> > > From: "Talon Wolles" <ta_iwo@y...>
> > > To: "professional vb" <pro_vb@p...>
> > > Sent: Saturday, November 23, 2002 4:29 PM
> > > Subject: [pro_vb] Re: Running same package
> > > concurrently
> > >
> > >
> > > Thanks Richie. May be you still don't understand my
> > > problem. I am just running the source code within
> > > VB6.
> > > While the source is running, I want to run the
> > > source
> > > again while the first one is still running in the
> > > background, thus creating the illusion of multiuser
> > > (two users running the app concurrently). So when I
> > > run the first, I minimize it, then how do I start
> > > running another one again without quiting the first.
> > > That's my problem. I did it before some how my brain
> > > can't recollect.
> > >
> > > Have a nice weekend
> > >
> > > -Talon
> > >
> > > --- Richard Ainsley <rainsley@p...> wrote:
> > > > Sometimes you need to make your exe's read only.
> > > > This usually happened to
> > > > me with non-microsoft network systems but it also
> > > > did it on older MS peer to
> > > > peer networks too. It is also possible that your
> > > > code is locking some
> > > > common resource it needs -- maybe the debugging
> > > file
> > > > stuff or something
> > > > else. Try making the exe read only first then
> > > with
> > > > the exe read only, try
> > > > making others read only and see if it helps.
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > To: "professional vb" <pro_vb@p...>
> > > > Sent: Friday, November 22, 2002 5:02 PM
> > > > Subject: [pro_vb] Re: Running same package
> > > > concurrently
> > > >
> > > >
> > > > Thanks Richard,
> > > >
> > > > I don't seem to be getting my problem across. The
> > > > record lock etc I quite understand. My problem is
> > > > trying to run same package on a computer
> > > > concurrently.
> > > > I go to VB, load the app (project), then click
> > > run.
> > > > While this is running, I want to load the app
> > > > (project) again and then click run, thus making
> > > the
> > > > app to be running twice simultaneously. This way I
> > > > can
> > > > now test my multiuser features like the file
> > > locking
> > > > you talking about. You know you can't test
> > > > multi-user
> > > > features if the program is not being run
> > > > concurrently.
> > > >
> > > > I don't know if you get my problem. I was able to
> > > do
> > > > this running concurrently before, but somehow my
> > > VB6
> > > > was not allowing it. I don't know what I did
> > > wrong.
> > > >
> > > > -Tallon
> > > >
> > > >
> > > >
> > > > --- Richard Ainsley <rainsley@p...> wrote:
> > > > > Access has some unique features you need to keep
> > > a
> > > > > look out for. If you
> > > > > have a n Access session open, it is easy to set
> > > up
> > > > > an exclusive lock on a
> > > > > table -- the open exclusive mode is the default
> > > > > typically. In VB6 with ADO,
> > > > > it is a little more reliable, but it depends a
> > > lot
> > > > > on the details. It
> > > > > depends upon exactly how you opened your
> > > > recordset.
> > > > > For example, you might
> > > > > be locking a record as you read it. Try using
> > > the
> > > > > optimistic locking
> > > > > options, unless it is your intent to lock up a
> > > > > record. Also, don't lock a
> > > > > record until you are ready to update it, if
> > > > posible.
> > > > > After updating, unlock
> > > > > it again.
> > > > >
> > > > > Optimistic Locking of records can be tricky to
> > > > code.
> > > > > You need to maintain a
> > > > > guid or time stamp on each record which is
> > > chaged
> > > > > with each update, then you
> > > > > re-read the record, place a record lock. If the
> > > > guid
> > > > > or time stamp is
> > > > > unchanged, them update (nobody else changed it),
> > > > > then remove the lock. In
> > > > > an access db you must set a transaction on these
> > > > > steps to accomplish this
> > > > > which you on the connection object. If somebody
> > > > > else changed the record
> > > > > (and you can not reliably update it), then you
> > > > need
> > > > > to rollback the
> > > > > transaction instead of committing it.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > > To: "professional vb" <pro_vb@p...>
> > > > > Sent: Thursday, November 21, 2002 4:27 PM
> > > > > Subject: [pro_vb] Re: Running same package
> > > > > concurrently
> > > > >
> > > > >
> > > > > What I maean is this. I am running a project VB6
> > > > in
> > > > > Windows98. I am using Access2000 as my database
> > > > but
> > > > > that is not the problem. I am not running the
> > > exe
> > > > > file
> > > > > but the source code. Now what I want to do is
> > > > this:
> > > > > As
> > > > > I run the source code I can minimize it, then
> > > try
> > > > to
> > > > > run it again thus having 2 runs. So it may look
> > > as
> > > > > if
> > > > > 2 people are running same package (creating a
> > > > > multi-user effect). This I was able to do before
> > > > but
> > > > > suddenly I just couldn't do again. That's what
> > > > > baffles
> > > > > me.
> > > > >
> > > > >
> > > > > -Talon
> > > > >
> > > > >
> > > > > --- Richard Ainsley <rainsley@p...>
> > > wrote:
> > > > > > Can't help unless you can be a lot more
> > > > specific.
> > > > > > Is this just an exe or is
> > > > > > there a database involved?, Files?, Printers?,
> > > > > > email? Which operating sysem
> > > > > > do you work on?
> > > > > >
> > > > > > One quick thought, if you are taking about an
> > > > > Access
> > > > > > type database
> > > > > > concurrency, check to be certain you are not
> > > > > opening
> > > > > > it exclusively.
> > > > > >
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > > > To: "professional vb" <pro_vb@p...>
> > > > > > Sent: Wednesday, November 20, 2002 4:51 PM
> > > > > > Subject: [pro_vb] Running same package
> > > > > concurrently
> > > > > >
> > > > > >
> > > > > > > Hi All,
> > > > > > >
> > > > > > > This may sound stupid but I know I have done
> > > > it
> > > > > > before
> > > > > > > recently but somehow I just couldn't do
> > > again.
> > > > I
> > >
> >
>
>
>----------------------------------------------------------------------
>
>Subject: Reading Mapi Attachments
>From: andy@n...
>Date: Wed, 27 Nov 2002 13:33:51
>X-Message-Number: 2
>
>I am writing an app to read incoming email to look for undeliverable
>messages being returned as a result of a mail campaign. So far so good
>using MAPI and works ok. But.... I need the subject of the original email
>that I sent. This is on the incoming undeliverable mail notification as an
>attachment to that email normally along with another attachment which
>gives details of the original recipient.
>
>The attachment that has the recipient details in is normally called
>ATT2002.txt or alike and can be read without a problem. However the
>attachment I really need the name of is the attached original message.
>When I try to get the name of this it just gives me MAI.MSG. I understand
>this is a temporary file used to hold the message?
>
>I hope this description makes some sense to someone :)
>
>Has anyone any ideas about a way to do this, any help would be very much
>appreciated.
>----------------------------------------------------------------------
>
>Subject: sql increment field
>From: "=3D?ISO-8859-1?Q?Antulio=3D20Mu=3DF1oz?=3D" <MunozRa@l...>
>Date: Wed, 27 Nov 2002 09:23:10 -0700
>X-Message-Number: 3
>
>I need help with that:
>
>I have a table with a field called ItemsCounter. I need fill the field =3D
>counter with a consecutive numeric value when I insert new values, like a
=3D
>Autonumeric or identity atribute.
>
>My query is=3D20
>INSERT Table
>Select ID,Number,desc, itemscounter
>=3D46ROM Table2
>
>I need itemcounter be a function or something that increase the value from
=3D
>1=3D
> to n.
>
>help me please.
>
>
>---------------------------------------------------------------------------
=3D
>---
>This message may contain confidential information, and is intended only
for=3D
> =3D
>the use of the individual(s) to whom it is addressed.
>
>
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D
>
>
>----------------------------------------------------------------------
>
>Subject: Re: sql increment field
>From: Keith Bamberger <keith@p...>
>Date: 27 Nov 2002 17:30:59 +0100
>X-Message-Number: 4
>
>Are you using SQLServer? if so it has a built in increment just turn it on
=3D
>on an integer field.
>
>
>----------------------------------------------------------------------
>
>Subject: Re: sql increment field
>From: "=3D?ISO-8859-1?Q?Antulio=3D20Mu=3DF1oz?=3D" <MunozRa@l...>
>Date: Wed, 27 Nov 2002 09:44:31 -0700
>X-Message-Number: 5
>
>Yes I am using SQLServer2000. I have a Field ID with identity atribute.
=3D
>But i need a second field that increment in each insert statement.
>
>Tk
>
> >>> keith@p... 11/27/02 10:30AM >>>
>Are you using SQLServer? if so it has a built in increment just turn it on
=3D
>on an integer field.
>
>
>
>
>
>---------------------------------------------------------------------------
=3D
>---
>This message may contain confidential information, and is intended only
for=3D
> =3D
>the use of the individual(s) to whom it is addressed.
>
>
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D
>
>
>----------------------------------------------------------------------
>
>Subject: RE: sql increment field
>From: "Ramos, Mario" <Mario.Ramos@w...>
>Date: Wed, 27 Nov 2002 16:47:43 -0000
>X-Message-Number: 6
>
>Hi.
>You can use a sub to get the last itemscounter fields and then =3D
>increment it
>by 1 (or by any other value). Something like:
>
>Private Sub MaxID()
> '
> Dim qry_max As String
> '
> =3D20
> qry_max_ent =3D3D "select max(ItemsCounter) From table"
> 'feed the query to your dynaset - here I use an oracle dynaset
> Set MaxDynaset =3D3D OraDatabase.CreateDynaset(qry_max_ent, &H0&)
> =3D20
> If MaxDynaset.RecordCount > 0 Then 'check to see the query returned
>something
> txtbox.Text =3D3D Str(MaxDynaset.Fields(0).Value + 1) 'add 1 to
=3D
>the last
>value found
> End If
> '
>End Sub
>
>
>Hope this helps.
>
>M=3DE1rio Ramos
>TI - Gestor de Projectos
>Telf: 234 10 10 52
>Email: Mario.Ramos@e...
>WWW: www.weber-cimenfix.com
>
>
>-----Mensagem original-----
>De: Antulio Mu=3DF1oz [mailto:MunozRa@l...]
>Enviada: quarta-feira, 27 de Novembro de 2002 16:23
>Para: professional vb
>Assunto: [pro_vb] sql increment field
>
>
>I need help with that:
>
>I have a table with a field called ItemsCounter. I need fill the field
>counter with a consecutive numeric value when I insert new values, like =3D
>a
>Autonumeric or identity atribute.
>
>My query is=3D20
>INSERT Table
>Select ID,Number,desc, itemscounter
>FROM Table2
>
>I need itemcounter be a function or something that increase the value =3D
>from 1
>to n.
>
>help me please.
>
>
>------------------------------------------------------------------------=3D
>----
>--
>This message may contain confidential information, and is intended only =3D
>for
>the use of the individual(s) to whom it is addressed.
>
>
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D
>=3D3D=3D3D
>
>
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or=3D20
>to unsubscribe send a blank email to =3D
>
>----------------------------------------------------------------------
>
>Subject: RE: Running same package concurrently
>From: "Phillips, Eric B." <Eric.Phillips@r...>
>Date: Wed, 27 Nov 2002 12:52:12 -0500
>X-Message-Number: 7
>
>Couldn't you make a copy of your project file as a different name and open
>it in a second instance of VB?
>
>-----Original Message-----
>From: Coral Johnson [mailto:coral.johnson@r...]
>Sent: Tuesday, November 26, 2002 10:57 PM
>To: professional vb
>Subject: [pro_vb] RE: Running same package concurrently
>
>
>Talon
>
>I understand that you want to run the same vb project in two intances of
VB.
>I'm not sure whether that should work or not, but there may be another way
>to accomplish what you want.
>
>Create an exe of your project, and start the exe.
>Open up your project in VB, and run it in the environment.
>Now you will be running 2 copies of your program, although one is compiled
>and one not. This should allow you to test your multiuser functionality.
>
>I usually create the exe, then start 2 copies of the exe to do the same
>thing. But if you need to debug, then the previous way might work better.
>
>If this doesn't work, is it possible that you are testing for
>App.PrevInstance to prevent 2 copies of your program running on the same
>computer.
>
>Coral
>
> >
> > Richie, I am not running the exe but the source code.
> >
> >
> > -Talon
> >
> > --- Richard Ainsley <rainsley@p...> wrote:
> > > Did you try making the exe read only?
> > >
> > > ----- Original Message -----
> > > From: "Talon Wolles" <ta_iwo@y...>
> > > To: "professional vb" <pro_vb@p...>
> > > Sent: Saturday, November 23, 2002 4:29 PM
> > > Subject: [pro_vb] Re: Running same package
> > > concurrently
> > >
> > >
> > > Thanks Richie. May be you still don't understand my
> > > problem. I am just running the source code within
> > > VB6.
> > > While the source is running, I want to run the
> > > source
> > > again while the first one is still running in the
> > > background, thus creating the illusion of multiuser
> > > (two users running the app concurrently). So when I
> > > run the first, I minimize it, then how do I start
> > > running another one again without quiting the first.
> > > That's my problem. I did it before some how my brain
> > > can't recollect.
> > >
> > > Have a nice weekend
> > >
> > > -Talon
> > >
> > > --- Richard Ainsley <rainsley@p...> wrote:
> > > > Sometimes you need to make your exe's read only.
> > > > This usually happened to
> > > > me with non-microsoft network systems but it also
> > > > did it on older MS peer to
> > > > peer networks too. It is also possible that your
> > > > code is locking some
> > > > common resource it needs -- maybe the debugging
> > > file
> > > > stuff or something
> > > > else. Try making the exe read only first then
> > > with
> > > > the exe read only, try
> > > > making others read only and see if it helps.
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > To: "professional vb" <pro_vb@p...>
> > > > Sent: Friday, November 22, 2002 5:02 PM
> > > > Subject: [pro_vb] Re: Running same package
> > > > concurrently
> > > >
> > > >
> > > > Thanks Richard,
> > > >
> > > > I don't seem to be getting my problem across. The
> > > > record lock etc I quite understand. My problem is
> > > > trying to run same package on a computer
> > > > concurrently.
> > > > I go to VB, load the app (project), then click
> > > run.
> > > > While this is running, I want to load the app
> > > > (project) again and then click run, thus making
> > > the
> > > > app to be running twice simultaneously. This way I
> > > > can
> > > > now test my multiuser features like the file
> > > locking
> > > > you talking about. You know you can't test
> > > > multi-user
> > > > features if the program is not being run
> > > > concurrently.
> > > >
> > > > I don't know if you get my problem. I was able to
> > > do
> > > > this running concurrently before, but somehow my
> > > VB6
> > > > was not allowing it. I don't know what I did
> > > wrong.
> > > >
> > > > -Tallon
> > > >
> > > >
> > > >
> > > > --- Richard Ainsley <rainsley@p...> wrote:
> > > > > Access has some unique features you need to keep
> > > a
> > > > > look out for. If you
> > > > > have a n Access session open, it is easy to set
> > > up
> > > > > an exclusive lock on a
> > > > > table -- the open exclusive mode is the default
> > > > > typically. In VB6 with ADO,
> > > > > it is a little more reliable, but it depends a
> > > lot
> > > > > on the details. It
> > > > > depends upon exactly how you opened your
> > > > recordset.
> > > > > For example, you might
> > > > > be locking a record as you read it. Try using
> > > the
> > > > > optimistic locking
> > > > > options, unless it is your intent to lock up a
> > > > > record. Also, don't lock a
> > > > > record until you are ready to update it, if
> > > > posible.
> > > > > After updating, unlock
> > > > > it again.
> > > > >
> > > > > Optimistic Locking of records can be tricky to
> > > > code.
> > > > > You need to maintain a
> > > > > guid or time stamp on each record which is
> > > chaged
> > > > > with each update, then you
> > > > > re-read the record, place a record lock. If the
> > > > guid
> > > > > or time stamp is
> > > > > unchanged, them update (nobody else changed it),
> > > > > then remove the lock. In
> > > > > an access db you must set a transaction on these
> > > > > steps to accomplish this
> > > > > which you on the connection object. If somebody
> > > > > else changed the record
> > > > > (and you can not reliably update it), then you
> > > > need
> > > > > to rollback the
> > > > > transaction instead of committing it.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > > To: "professional vb" <pro_vb@p...>
> > > > > Sent: Thursday, November 21, 2002 4:27 PM
> > > > > Subject: [pro_vb] Re: Running same package
> > > > > concurrently
> > > > >
> > > > >
> > > > > What I maean is this. I am running a project VB6
> > > > in
> > > > > Windows98. I am using Access2000 as my database
> > > > but
> > > > > that is not the problem. I am not running the
> > > exe
> > > > > file
> > > > > but the source code. Now what I want to do is
> > > > this:
> > > > > As
> > > > > I run the source code I can minimize it, then
> > > try
> > > > to
> > > > > run it again thus having 2 runs. So it may look
> > > as
> > > > > if
> > > > > 2 people are running same package (creating a
> > > > > multi-user effect). This I was able to do before
> > > > but
> > > > > suddenly I just couldn't do again. That's what
> > > > > baffles
> > > > > me.
> > > > >
> > > > >
> > > > > -Talon
> > > > >
> > > > >
> > > > > --- Richard Ainsley <rainsley@p...>
> > > wrote:
> > > > > > Can't help unless you can be a lot more
> > > > specific.
> > > > > > Is this just an exe or is
> > > > > > there a database involved?, Files?, Printers?,
> > > > > > email? Which operating sysem
> > > > > > do you work on?
> > > > > >
> > > > > > One quick thought, if you are taking about an
> > > > > Access
> > > > > > type database
> > > > > > concurrency, check to be certain you are not
> > > > > opening
> > > > > > it exclusively.
> > > > > >
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Talon Wolles" <ta_iwo@y...>
> > > > > > To: "professional vb" <pro_vb@p...>
> > > > > > Sent: Wednesday, November 20, 2002 4:51 PM
> > > > > > Subject: [pro_vb] Running same package
> > > > > concurrently
> > > > > >
> > > > > >
> > > > > > > Hi All,
> > > > > > >
> > > > > > > This may sound stupid but I know I have done
> > > > it
> > > > > > before
> > > > > > > recently but somehow I just couldn't do
> > > again.
> > > > I
> > >
> >
>
>
>
>----------------------------------------------------------------------
>
>Subject: VB and cmd.exe
>From: =3D?iso-8859-1?Q?=3DD8yvind_Heen_Nilsen?=3D <oeyvind.heen@t...>
>Date: Wed, 27 Nov 2002 21:26:27 +0100
>X-Message-Number: 8
>
>SGkgYWxsLg0KDQpJIGtub3cgdGhhdCBJIGNhbiBvcGVuIHRoZSBjb21tYW5kIHdpbmRvdyBieSB
1
>c2luZyB0aGlzIGNvZGU6DQoJICAgIENhbGwgU2hlbGwoImM6XHdpbmRvd3Ncc3lzdGVtMzJcY21
k
>IikNCg0KTXkgcHJvYmxlbSBpcyBob3cgdG8gcnVuIGEgY29tbWFuZCBieSB1c2luZyBteSBwcm9
n
>cmFtOg0KIC0gSXMgaXQgcG9zc2libGUgdG8gd3JpdGUgdGhlIGNvbW1hbmQgSSB3YW50IHRvIHV
z
>ZSBpbiBhIHRleHRib3ggb3IgaW4gYSB2YXJpYWJsZSwgYW5kIGxldCBteSBwcm9ncmFtICJzZW5
k
>IiBpdCB0byB0aGUgY29tbWFuZCB3aW5kb3cgYW5kIGFjdGl2YXRlIGl0Pw0KRm9yIGV4YW1wbGU
g
>aXBjb25maWcuZXhlDQoNCg0KSSBob3BlIHlvdSB1bmRlcnN0YW5kIG15IHByb2JsZW0uDQoNCkJ
l
>c3QgcmVnYXJkcyANCth5dmluZA0KDQoNCg=3D=3D
>
>
>
>----------------------------------------------------------------------
>
>Subject: VB and cmd Part 2
>From: "=D8yvind Heen Nilsen" <oeyvind.heen@t...>
>Date: Wed, 27 Nov 2002 20:42:25
>X-Message-Number: 9
>
>Hi all.
>
>I know that I can open the command window by using this code:
> Call Shell("c:\windows\system32\cmd")
>
>My problem is how to run a command by using my program:
> - Is it possible to write the command I want to use in a textbox or in a
>variable, and let my program "send" it to the command window and activate
>it?
>For example ipconfig.exe
>
>
>I hope you understand my problem.
>
>Best regards
>=D8yvind
>----------------------------------------------------------------------
>
>Subject: Re: VB and cmd.exe
>From: Richard Ainsley <rainsley@p...>
>Date: Wed, 27 Nov 2002 13:11:29 -0800
>X-Message-Number: 10
>
>There are several API calls that you can use from VB6 to do that.
>
>----- Original Message -----
>From: "=D8yvind Heen Nilsen" <oeyvind.heen@t...>
>To: "professional vb" <pro_vb@p...>
>Sent: Wednesday, November 27, 2002 12:26 PM
>Subject: [pro_vb] VB and cmd.exe
>
>
> > Hi all.
> >
> > I know that I can open the command window by using this code:
> > Call Shell("c:\windows\system32\cmd")
> >
> > My problem is how to run a command by using my program:
> > - Is it possible to write the command I want to use in a textbox or in
a
>variable, and let my program "send" it to the command window and activate
>it?
> > For example ipconfig.exe
> >
> >
> > I hope you understand my problem.
> >
> > Best regards
> > =D8yvind
> >
> >
> >
> > =81=BAS=B6=B1=B6=FE=C2rT=81=B2=B6<=A7=B2=E6=ECr=B8>z=C7=A7u=A6=E5jyT=A8
=A5=B6?^j=F7=A9=AE<=DB=D7^<=DB=9DM=A7jp=AEO\
>
>
>----------------------------------------------------------------------
>
>Subject: Re: VB and cmd Part 2
>From: "Joe Hughes" <JoeHughes@M...>
>Date: Wed, 27 Nov 2002 22:42:56 -0000
>X-Message-Number: 11
>
>Hi =D8yvind,
>
>A quick and easy way is do;
>
>c:\windows\system32\cmd.exe /c YOURCOMMANDHERE
>
>e.g
>
>c:\windows\system32\cmd.exe /c DIR
>
>So you could do something like;
>
>'-------------------
>strCommand =3D "C:\Windows\System32\cmd.exe /c "
>
>Call Shell(strCommand & txtCommand.text)
>
>'-------------------
>
>HTH
>
>Joe Hughes
>
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D
>
>
>----- Original Message -----
>From: "=D8yvind Heen Nilsen" <oeyvind.heen@t...>
>To: "professional vb" <pro_vb@p...>
>Sent: Wednesday, November 27, 2002 8:42 PM
>Subject: [pro_vb] VB and cmd Part 2
>
>
> > Hi all.
> >
> > I know that I can open the command window by using this code:
> > Call Shell("c:\windows\system32\cmd")
> >
> > My problem is how to run a command by using my program:
> > - Is it possible to write the command I want to use in a textbox or in
a
> > variable, and let my program "send" it to the command window and
activate
> > it?
> > For example ipconfig.exe
> >
> >
> > I hope you understand my problem.
> >
> > Best regards
> > =D8yvind
> >
>
>
>
>
>
>---
>
>END OF DIGEST
>