Dear Marco and Sulman,
I am still getting an error at line 23:
WshShell.run Chr(34) & strApp & Chr(34) & ” ” & Chr(34) & strPara1 & Chr(34) & ” ” & Chr(34) & strPara2 & Chr(34), 0, True
View post on imgur.com
I checked for the folders and the path, it exists.
What is wrong with the script?
Please help and thank you.
Looking at the screenshot and knowing the script works I can conclude that the script is working fine. It just can't find the file. Until now this issue only occurs in the following situations;
- The installation directory is not the directory mentioned in the script
- It cannot resolve if it's a 64bit of 32bit installation.
Please run the following script and let me know what the outcome is (save script as vbs script and run within a command prompt ; wscript.exe .vbs )
It will show u 2 pop-ups
' Name : Check_Existance_ntrmv_exe.vbs
' Description : Script for checking existance of filename ntrmv.exe
' Created by: Marco Nuijens - Virtualizethis.net
strApp86 = "C:Program FilesTrend MicroOfficeScan Clientntrmv.exe"
strApp64 = "C:Program Files (x86)Trend MicroOfficeScan Clientntrmv.exe"
Set FSO = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strApp86) Then
MsgBox "ntrmv.exe exists in location" & " " & strApp86
MsgBox "ntrmv.exe does not exists in location" & " " & strApp86
If fso.FileExists(strApp64) Then
MsgBox "ntrmv.exe exists in location" & " " & strApp64
MsgBox "ntrmv.exe does not exists in location" & " " & strApp64