@echo off java -Xms1024M -Xmx1024M -jar jarfilegoeshere.jar pause
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load For Each f In Directory.GetFiles("C:\Users\me\Desktop\directory", "*.bat", SearchOption.AllDirectories) 'MsgBox(f) Dim psi As New ProcessStartInfo(Path.GetFullPath(f)) psi.RedirectStandardError = False psi.RedirectStandardOutput = False psi.CreateNoWindow = False psi.WindowStyle = ProcessWindowStyle.Normal psi.UseShellExecute = True Dim process As Process = Process.Start(psi) Next Me.Close() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)