shin
04-23-2003, 03:15 PM
Is it possible to modify 7th line (form.ans.value=a+b+c+d) and run the Windows command "tracert nnn.nnn.nnn.nnn"?
I am trying to run Windows 2000 DOS prompt command on the intranet using user entered ip address. Am I totally off?
<script language="javascript">
function trace(form){
a=eval (form.a.value)
b=eval (form.b.value)
c=eval (form.c.value)
d=eval (form.d.value)
form.ans.value=a+b+c+d
}
</script>
<form name="tacert">
<input type=text name="a" size="20">
<input type=text name="b" size="20">
<input type=text name="c" size="20">
<input type=text name="d" size="20">
<input type="button" value="Trace" onclick="trace(this.form)">
<input type "text" value=0 name="ans" size="20">
</form>
I am trying to run Windows 2000 DOS prompt command on the intranet using user entered ip address. Am I totally off?
<script language="javascript">
function trace(form){
a=eval (form.a.value)
b=eval (form.b.value)
c=eval (form.c.value)
d=eval (form.d.value)
form.ans.value=a+b+c+d
}
</script>
<form name="tacert">
<input type=text name="a" size="20">
<input type=text name="b" size="20">
<input type=text name="c" size="20">
<input type=text name="d" size="20">
<input type="button" value="Trace" onclick="trace(this.form)">
<input type "text" value=0 name="ans" size="20">
</form>