J
JH
Can somebody help me here. The following code works fine till the last
statement. It changes to the directory
but fails to execute the command install.cmd. The file install.cmd is
located at the directory name.
Thanks
Dim directoryName As String
Dim WshShell
directoryName =
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
WshShell = CreateObject("Wscript.Shell")
WshShell.Run("cmd /k cd " & directoryName & "\" & "Install.cmd")
statement. It changes to the directory
but fails to execute the command install.cmd. The file install.cmd is
located at the directory name.
Thanks
Dim directoryName As String
Dim WshShell
directoryName =
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
WshShell = CreateObject("Wscript.Shell")
WshShell.Run("cmd /k cd " & directoryName & "\" & "Install.cmd")