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\