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:
Private Sub Arcadre_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Arcadre.Click txtCommand.Text = "acadre.bat" startThread() 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:
txtCommand.text = "\\network\path\path\acadre.bat
Acadre.bat contains this line:
VB Code:
\\network2\path\path\acadreinst\AcadreClient.bat
The final batch file contains a small amount of code:
VB Code:
rd /s /q %temp%\acadrecache start /wait msiexec /x{490AFB76-A301-4BAB-8BD5-AE796C304F21} REBOOT=R /qn regedit /s \\network2\path\path\acadreinst\AcadreClient.reg regsvr32 /s c:\program files\lotus\notes\nlsxbe.dll 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?




Reply With Quote