----- Original Message -----
From: "Peter N. Kipe" <pkipe@c...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, November 28, 2002 2:57 AM
Subject: [pro_vb] Re: VB and cmd Part 2
> Another way is to write your commands to a new file with a
".cmd" extension,
> then start the .cmd file with Shell.
>
> Pete
>
> -----Original Message-----
> From: Joe Hughes [mailto:JoeHughes@M...]
> Sent: Wednesday, November 27, 2002 5:43 PM
> To: professional vb
> Subject: [pro_vb] Re: VB and cmd Part 2
>
>
> Hi Øyvind,
>
> 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 = "C:\Windows\System32\cmd.exe /c "
>
> Call Shell(strCommand & txtCommand.text)
>
> '-------------------
>
> HTH
>
> Joe Hughes
>
> ============================
>
>
> ----- Original Message -----
> From: "Øyvind 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
> > Øyvind
> >
>
>
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp
or
>
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp
or
>