Hey guys/girls

I have a problem. I made a program that runs batch files from a location on our network.



When I press a button, the code looks like this:


VB Code:
  1. Private Sub Arcadre_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Arcadre.Click
  2.         txtCommand.Text = "acadre.bat"
  3.         startThread()
  4. End Sub

txtComand is a hidden label that contains the network path.

Some of them work, and some don't. I don't understand why some batch files won't run. (The batch files installs the program selected).

One batch file that doesn't work is for example the above code:

VB Code:
  1. txtCommand.text = "\\network\path\path\acadre.bat

Acadre.bat contains this line:
VB Code:
  1. \\network2\path\path\acadreinst\AcadreClient.bat

The final batch file contains a small amount of code:
VB Code:
  1. rd /s /q %temp%\acadrecache
  2. start /wait msiexec /x{490AFB76-A301-4BAB-8BD5-AE796C304F21} REBOOT=R /qn
  3. regedit /s \\network2\path\path\acadreinst\AcadreClient.reg
  4. regsvr32 /s c:\program files\lotus\notes\nlsxbe.dll
  5. start /wait msiexec /i \\network2\path\path\acadreinst\acadreclient.msi /qb! ADDLOCAL=CM,CM_Core,CM_Core_Shortcuts,CM_EI,CM_GIS,CM_KA,CM_LN,CM_Off2000,CM_Routing REMOVE=MM,MM_Client,MM_Client_Shortcuts,MM_OL,MM_Off2000

I didn't code the batch files, I just need to get them to run via the interface.

Am I doing something wrong or is it possible to code the last batch inside vb and drop the batch files?