Help: Can VB open a command prompt and pipe commands?

  • Follow


Hi folks,

Is anybody able to tell me if and how it is possible to have vb open a 
command prompt and have commands or text i specify piped into it to carry 
out some tasks?

Help is appreciated.

Thank you in advance.

Clint


0
Reply fakeemail4 (19) 2/27/2007 8:18:41 PM

On Feb 27, 2:18 pm, "Clinton M James" <fakeem...@yahoo.com> wrote:
> Hi folks,
>
> Is anybody able to tell me if and how it is possible to have vb open a
> command prompt and have commands or text i specify piped into it to carry
> out some tasks?
>
> Help is appreciated.
>
> Thank you in advance.
>
> Clint

Clint - What type of an application are you writing?

What you ask is very similar to the basic operation of a computer
virus.

0
Reply secondar (59) 2/27/2007 9:18:56 PM


In response to the post:
 On Wed, 28 Feb 2007 07:18:41 +1100, "Clinton M James"
<fakeemail@yahoo.com> stated...and I replied:

>Hi folks,
>
>Is anybody able to tell me if and how it is possible to have vb open a 
>command prompt and have commands or text i specify piped into it to carry 
>out some tasks?
>
>Help is appreciated.
>
>Thank you in advance.
>
>Clint
>

Clint,

Best way to do this is to create a .bat file and run it.

1  Write a file with each of the steps you want done (Make sure you
close it).

2  ShellExecute will run it.

Hope this helps,
Shell
0
Reply drshell (102) 2/28/2007 3:52:54 AM

No Virus intended, wouldnt know what to do there.

What I am doing is in my role at work I have to prepare things to be put on 
a cd in pdf format.

The process is drawn out... I have macronised the process where i create the 
text files required however the images need to be ftp'ed then telnet needs 
to come in to the equation.

I wanted VB to throw commands to a command prompt shell, launching ftp and 
exectuing commands and then doing the same sort of thing for telnet.

I have worked out how to do this now with sendkeys, but i find sendkeys 
lacking in that i cannot touch the compuer while it happens otherwise i take 
the emphasis off the window.

Is there anyway to do this through piping rather than sendkeys? That way I 
am free to do all my other tasks while i goes about obtaining the data and 
binding it for me and uploading it to another server.

I am not an advanced user of VB, just moderate, so any easy to follow way 
would be appreciated.

Once again, thanks to anybody in advance.
<secondar@hotmail.com> wrote in message 
news:1172611136.284847.224020@m58g2000cwm.googlegroups.com...
> On Feb 27, 2:18 pm, "Clinton M James" <fakeem...@yahoo.com> wrote:
>> Hi folks,
>>
>> Is anybody able to tell me if and how it is possible to have vb open a
>> command prompt and have commands or text i specify piped into it to carry
>> out some tasks?
>>
>> Help is appreciated.
>>
>> Thank you in advance.
>>
>> Clint
>
> Clint - What type of an application are you writing?
>
> What you ask is very similar to the basic operation of a computer
> virus.
> 


0
Reply fakeemail4 (19) 2/28/2007 1:09:31 PM

On Wed, 28 Feb 2007 07:18:41 +1100, "Clinton M James"
<fakeemail@yahoo.com> wrote:

>Hi folks,
>
>Is anybody able to tell me if and how it is possible to have vb open a 
>command prompt and have commands or text i specify piped into it to carry 
>out some tasks?
>
>Help is appreciated.
>
>Thank you in advance.
>
>Clint
>

Can you convert some VB3 code to VB6?

If so, look here http://www.jecarter.com/thelabwiz/vbsource.html for
win2dos

John

0
Reply look3664 (35) 9/11/2007 6:49:34 PM

4 Replies
43 Views

(page loaded in 0.096 seconds)

Similiar Articles:













7/14/2012 8:08:07 AM


Reply: