Answer the question
In order to leave comments, you need to log in
How to run notepad from html page and pass my string?
I wrote this code, it gives errors. what's wrong?
<html>
<SCRIPT LANGUAGE="VBScript">
sub prog
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run ("notepad", 1, True)
WshShell.SendKeys "&i.value"
End sub
</script>
<body>
<input type=text name=i value="">
<input type=submit name=submit onClick=prog>
<body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question