Results 1 to 2 of 2

Thread: [VS 2005] Passing a command to the command line

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    1

    [VS 2005] Passing a command to the command line

    Hey guys, I just started with VB, and I'm wondering if I can pass along this command:

    copy /b file.ext + file.ext file.ext

    to the command line. I've tried Shell() and Process.Start, but nothing seems to work . Is there a function in VB that's like system() in C++?

    And, if possible, could I use a function instead of passing that command to the command line?

    Thanks guys.

  2. #2
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: [VS 2005] Passing a command to the command line

    Take a look at this:

    http://www.vbforums.com/showthread.php?t=381405

    I think it's what you want
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

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