PDA

Click to See Complete Forum and Search --> : start commandline utilities within vbscript


Hansz
Dec 13th, 2000, 04:35 AM
Can someone tell me how I can start different commandline tools or utilities within vbscript? Here is the source I have:

<HTML>
<HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Button1_OnClick

'Here I want to start different commandline utilities for
'example:
'1 net start services/net stop services
'2 c:\winnt\system32\cmd.exe cmdjob.cmd
'3 c:\program files\resource kit\resourcekittool.exe

End Sub
-->
</SCRIPT>
</HEAD>
<BODY>

<HR>
<FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Command"></FORM>

</BODY>
</HTML>