Click to See Complete Forum and Search --> : Redirect DIR *.txt > Filename Through VB (DOS Command)


August 21st, 1999, 12:26 PM
Hello Friend,

How can I redirect MS-Dos Command C:\>Dir *.txt > Filename programatically
through Visual Basic Code.. I made an attempt using the Shell command
But it is not working.. Is there any way out .. After transferring the
output to the file, I want to send it to the printer ..

Urgent!!!

Regards

Prasad

August 21st, 1999, 05:37 PM
Shell("Command /C Dir *.txt > Filename")



Good luck! :)