1
Please someone can help me, I have this code below, saved in vbs, the problem occurs in the two lines that have exenemy, if the code is saved with the first line, it works, if it is saved with the second line it does not find the file, however, the file exists, if I copy and paste in Windows Run it opens the program. The error that appears is: The system cannot find the specified file.
strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim exeName
Dim statusCode
exeName = "%windir%\notepad"
exeName = "C:\Program Files (x86)\Lancamentos.net\Lancamentos.exe"
statusCode = WshShell.Run (exeName, 1, true)
MsgBox("Fim do programa")
Thomas, solved friend, thank you very much.
– userTi
Great @userTi. Can you please mark the answer as a solution? Hug
– E.Thomas
Marked, once again, thank you.
– userTi