Hi maybe you can try it with a process:
Dim psi As New ProcessStartInfo
Dim p As New Process
psi.FileName = "your dos program"
psi.WorkingDirectory = "the working directory"
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.Arguments = "the arguments for your dos command"
p.StartInfo = psi
p.Start()
p.WaitForExit()
hth
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)
"ngr" <ng*@tdrd.freeserve.co.uk> schreef in bericht
news:o9********************@karoo.co.uk...
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.