VB Code:
strCommand = BuildCommand() 'MsgBox(strCommand) Clipboard.SetDataObject(strCommand) Dim writer As StreamWriter = New StreamWriter(App_Path() + "convert.bat") writer.WriteLine(strCommand) writer.Close() System.Diagnostics.Process.Start(App_Path() + "convert.bat") MsgBox("batch file executed")
Ok so this set of code correctly creates the convert.bat file and I can see it flicker as the window runs but it doesn't run the contents of the batch file. However, If I double click the batch file manually from the dir it runs. Any ideas?


Reply With Quote