run vb script file without prompting to open/save

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JamieHowarth0
    Recognized Expert Contributor
    • May 2007
    • 537

    #16
    Hi Anu,

    If you want to run the RDP executable when a user clicks on a link, surely instead of calling WScript to run it, simply use the following link code:
    [code=html]<a href="file://C:/WINDOWS/system32/mstsc.exe%20\/r%20YOURIPHERE" >Click to launch Remote Desktop</a>[/code]
    That way, you avoid the problem of getting a piece of VBS code downloaded and run on the user's machine as you parse the server's IP into the link and when the user clicks on it it gets passed to the local application instance of RDP.

    medicineworker

    Comment

    • AnuSumesh
      New Member
      • Aug 2007
      • 96

      #17
      Hi medicineworker,

      Thanks for reply.
      I have tried this but its not working.
      But now i m using javascipt function rather than vbs function and its working fine.
      But the problem is the file mstsc.exe should be present on client machine.
      Can you please tell me that is this file available in Windows-95/98/2000 machines also?
      If yes then my problem is solved. But if no then i have to first download the file on client machine before running the file.

      Thanks,
      Anu

      Comment

      Working...