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

    WRITING A SHELL COMMAND TO A FILE

    Why won't this work in vb?
    shell "ping www.yahoo.com > c:\ping.txt"
    it will not create the ping.txt

    Greeting, Earthquaker


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: WRITING A SHELL COMMAND TO A FILE

    Shell isn't the DOS O/S, so it doesn't recognize the Porting Command, what you could do is write a BAT file and Call that with the Shell Command.

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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