Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: VB and cmd.exe


Message #1 by =?iso-8859-1?Q?=D8yvind_Heen_Nilsen?= <oeyvind.heen@t...> on Wed, 27 Nov 2002 21:26:27 +0100
There are several API calls that you can use from VB6 to do that.

----- Original Message -----
From: "Øyvind 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
> Øyvind
>
>
>
> ?ºS¶±¶
ÂrT?²¶<§²æìr¸>zǧu¦åjyT¨¥¶?^j÷©®<Û×^<Û?M§jp®O\


  Return to Index