Results 1 to 2 of 2

Thread: execute .bat file [resolved]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    execute .bat file [resolved]

    Hi,

    how do i execute a .bat file from vb.net?

    Cheers
    Nick

    sorted!
    Code:
    Dim proc As New Process()
    proc.StartInfo.FileName = "c:\file.bat"
    proc.Start()
    Last edited by nswan; Mar 2nd, 2004 at 10:24 AM.
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

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