Re: Shell to DOS
- From: "ngr" <ngr@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 23:34:23 +0100
Resolved the piping issue by creating a batch file and calling that
directly.
Messy but it works.
Terry
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:OP7%23jjdUGHA.4884@xxxxxxxxxxxxxxxxxxxxxxx
"ngr" <ngr@xxxxxxxxxxxxxxxxxxxx> schrieb:
I want to be able to shell to DOS to pipe the contents of something to a
file which can then be read in by VB.
Example
Shell to DOS and then run ROUTE PRINT > FRED.TXT
return to VB and then open fred.txt to do sometning with that.
My attempts have so far failed as no piped file has been generated
whereas it works directly from DOS.
You'll have to start "cmd" (or "%COMSPEC%") instead of your application
because the '>' feature is a feature of the command shell. You can pass
the command string to "cmd" in the command line.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- References:
- Shell to DOS
- From: ngr
- Re: Shell to DOS
- From: Herfried K. Wagner [MVP]
- Shell to DOS
- Prev by Date: Re: How to get date correponding to 2nd wednesday of each month.
- Next by Date: Re: which is better
- Previous by thread: Re: Shell to DOS
- Next by thread: Update data in datagrid
- Index(es):
Relevant Pages
|