CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Redirect DIR *.txt > Filename Through VB (DOS Command)

    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




  2. #2
    Guest

    Re: Redirect DIR *.txt > Filename Through VB (DOS Command)


    Shell("Command /C Dir *.txt > Filename")



    Good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured