Launch MSTSC from SHTML Page.

F

fmc23

The following code will not work in my shtml page at all and I can not
figure out the reason. I get the error that there is a "Type Mismatch
'Launch'" when i click the button.

If i change the server side include to the acutaly ip it works great. I
just can not get it to work with the server side inclue. Any help would
be greatly appreciated! Thanks Everyone!

<p>Test</p>

<input type="BUTTON" name="Write" value="Click" language=VBS
onclick="Launch">

<script language="vbscript">
Sub Launch
Set oShell = CreateObject("WScript.Shell")
oShell.run "mstsc.exe /v <!--#include file="currentid.txt"-->"
Set oShell = Nothing
End sub
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top