hi
How to run Bat file in VB.net
Regards
karthik
How to run Bat file in VB.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Jun 9, 2007, 4:16 AM EDT
I suspect you intended to post this question on the VB.Net rather than the SQL Server 2005 forum but, as I think I know the answer, I'll answer it anyway :)
Try this code with the path of your .bat file:
Imports System
Imports System.Diagnostics
Module Test
Sub Main()
Dim proc As New Process()
Dim batFilePath As String = "C:\somefolder\somefile.bat"
proc.Start(batFilePath)
End Sub
End Module