Roger Zander's SMS Client Spy - RCrumbaker's Web Remote Tools

There is most likely a much more elegent way to do this; but here's a way to get Roger Zander's (http://sourceforge.net/projects/smsclictr) SMS Client Spy to launch from a button on Ron's page:

First, you'll need to install the application on a test box (you can uninstall when done).  Then copy the 3 files (SMSCliCtr.exe, Eyefinder.dll, and SMSCliCtr.exe.config) to <your server>\remote$  When I was testing, I found I couldn't launch the app directly from remote$, this may be something unique to my environment, but I've scripted it to copy the 3 files to the local user's temp folder, and then launch it from there.

Edit MachRest.asp, and add a button by your other buttons (about line 80-ish):
<INPUT id="Button726" style='WIDTH: 180px' type='button' value='SMS Client Center' name='Btnl726'>

Then add the below (the Sub) probably near the bottom, just before the </script>, after all of the other Sub/end Sub routines

Sub Btnl726_OnClick
 on error resume next
 dim CompName,oWshShell
 Set fso = createobject("scripting.filesystemobject")
 CompName = trim(document.frmMain.txtValue.value)
 Set WShell = CreateObject("WScript.Shell")
        DotNetpath = "%SystemRoot%\Microsoft.NET\Framework\v2.0.50727"
        DotNetpath = Wshell.ExpandEnvironmentStrings(dotnetpath)
        strTemp = wshell.ExpandEnvironmentStrings("%temp%")
        if fso.folderExists(dotNetPath) then
         fso.copyfile "\\" & ServerName & "\remote$\SMSCliCtr.exe",strTemp & "\"
         fso.copyfile "\\" & ServerName & "\remote$\Eyefinder.dll",strTemp & "\"
         fso.copyfile "\\" & ServerName & "\remote$\SMSCliCtr.exe.config",strTemp & "\"
         ipath = strtemp & "\SMSCliCtr.exe "
         if fso.fileExists(trim(ipath)) then
           WShell.run ipath & compname,1,false
           else
           msgbox "The SMS Client Center application was not found!",,"Application Missing"
         end if 'End if on file exists
         else
         msgbox "In order to run this utility, you need .Net 2.0 installed, sorry.",,".Net 2.0 Pre requisite"
         end if 'end if on needing .net 2.0
End Sub

Published Monday, September 25, 2006 3:57 PM by skissinger

Comments

# myITforum Daily Newsletter; September 26, 2006

myITforum Daily Newsletter Daily Newsletter September 26, 2006 The myITforum.com newsletter is delivered

Tuesday, September 26, 2006 8:38 AM by myITforum Newsletters

# re: Roger Zander's SMS Client Spy - RCrumbaker's Web Remote Tools

Sherry, me again.. hey im adding your updates to a test site and this modification does not do anything.  It loads fine but it looks like it does not download the files.  It just comes up with the prompt that SMS Client Center application was not found.. ANy ideas?

Monday, December 03, 2007 11:55 AM by hcortez463

# re: Roger Zander's SMS Client Spy - RCrumbaker's Web Remote Tools

If it's failing to copy the files; verify you have those 3 files on \\ smsserver \remote$, and the logged in user has read-rights to remote$ to grab those files.  If you do, you might want to change those three lines to explicitly reference the server, instead of using the ServerName variable, i.e.,  fso.copyfile "\\ServerName\remote$\SMSCliCtr.exe",strTemp & "\"      Maybe it just doesn't like the variable.

Monday, December 03, 2007 4:13 PM by skissinger

# re: Roger Zander's SMS Client Spy - RCrumbaker's Web Remote Tools

Sherry. just wanted to update you on this.. I made the changes by adding the server name instead of the variable and that worked.  I then started to get .net error after the application opened.  After testing i found that you also need the smsclictr.automation.dll file. I copied the file to Remote$ and added fso.copyfile "\\bhdasms01\remote$\smsclictr.automation.dll",strTemp & "\" to the script and everything worked..

Wednesday, December 05, 2007 9:30 AM by hcortez463