All Forums >> [Scripting] >> WSH & Client Side VBScript >> [RESOLVED]Cannot find Error in Script Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
This is actually a classic ASP page, but I thought you guys could help with this script..
I get an error of "Cannot Use Parenthese when calling a Sub" Error on Line 51, which is this:
response.Write "<br>Computer Found: " & rs(0)
This is what the script does...
There is a previous page with a drop down menu that is called "azou"
This script takes the value selected from the menu and checks the computer name that is stored in our login tracking database to see which computer that user is logged into. Once it finds the computer, it is suppose to launch remote.exe on the client side with that computer name.
Here is the script
< Message edited by twilliamsen -- 1/11/2008 12:27:13 AM >
not to harass you, but to help other readers/lurkers of this forum to avoid the very common pitfall of calling Subs with () - would you consider doing something about
in the directory of the .hta. Changing the connection string and the SQL field names (possibe problems with names like DateTime (reserved word) had to be avoided) should make the .hta suitable for your environment.
as I don't know/use Remote.exe, I have no clue about how to help you. Can you explain the problem a bit further? Does the Remote.exe application start? How did you specify the target for your SendKeys? Perhaps someone more familiar with SendKeys can spot the problem.
remote.exe is the application for Remote Tools for SMS. It has buttons/menus in it for different tools.
The tool that needs to be used is Remote Control.
I did try the following code, and this sent it into a loop of re-opening remote.exe till you killed the app
wscript.Sleep 12000 oWSH.SendKeys "{F10}" wscript.sleep 5000 owsh.sendkeys "{ALT}" wscript.sleep 1000 oWSH.SendKeys "T" wscript.sleep 1000 oWSH.SendKeys "{ENTER} <--- if I comment this out then it doesn't loop
For some unknown reason the remote.exe window does not become the top most application launched. I don't know if remote.exe is calling an EXE or a DLL or something, I don't know enough about it and I have not found any documentation on it either.