|
|
Help: Can VB open a command prompt and pipe commands?
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: Command line driver SQL statement - comp.databases.btrieve ...Or is there a way to write a VB script to ... Or is there any free software that will help ... A Using SQL Command Line At the SQL> prompt, you can enter SQL statements. mail command within awk - comp.lang.awk... we run the mail command within awk based on some condition. Can anyone help me ... the possibility to pipe any string to an external command ... What's the simplest command-line ... Capture windows command return code to variable in awk script ...... which" command in a Windows command window, so I can ... but apparently that's true for command line ... Help passing many commands to one command window from with rexx ... Wrap a function - comp.lang.python... call to system commands, that works well with pipes ... editing (NOT the prompt call parameters style but rather help ... in REXX as one can plug in the native command line ... Run awk95 using VBA Shell(...) in Excel 2000 - comp.lang.awk ...... DOS window open so I can see any >error messages? From my experiance with cmd and awk: Don't use the command line ... use the Visual Basic for Applications ... awk pipe and ... How do I check the existence of a file programmatically in C ...... to enter commands interactively from the command line on a Unix system. One command a user can ... exists the open will fail, and thast's when you can prompt ... in vb - comp ... Getting a hConsoleOutput handle - comp.os.ms-windows.programmer ...... the console of a Command Prompt application? I can ... is redirected to a pipe ... suite, so I can quickly throw together scripts that send commands to a Command Prompt and ... Value too large for defined data type... - comp.unix.solaris ...trussed the entire command line (i.e. zcat and ... sure if trussing diff itself would help The left hand side of the pipe ... > Get another system. =A0Try the same commands ... passing a list of files to awk - comp.lang.awkYour piping the output of awk into the other commands. ... awk xargs avoids overflowing the command line ... files to awk - comp.lang.awk Awk help ... migrating mainframe z/VM Rexx to linux ooRexx - comp.lang.rexx ...Missing functions and commands can be written in REXX, to ... which could bite you good and hard are the PIPE command ... up, OS/2 (1.3 ... the first public release of Open ... The Command Prompt|Shell in Windows- Introduction... colors can be changed) containing the command prompt will open. ... These commands can only be run from a command prompt ... help" (without quotes) into a command prompt. For ... Pipe commands to cmd.exe with switchesHelp; Jobs; Legal; Privacy ... fu for running quick commands using command line ... open, run the specified command, then keep the window open. Granted, piping in commands ... 7/14/2012 8:08:07 AM
|
|
|
|
|
|
|
|
|