|
-
Dec 13th, 2000, 06:06 AM
#1
Thread Starter
Junior Member
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>
-
Dec 13th, 2000, 10:32 PM
#2
The best way I have found to do this is use a DLL called ASPEXEC.dll goto yahoo and seach for it. It allows you to call batch files in any directory on the server. More importantly it lets you pass parameters to the batch file
-
Dec 14th, 2000, 09:47 AM
#3
Thread Starter
Junior Member
Thanx
Thanks, must be the solution. I'll give it a try.
greetings,
Hans
-
Dec 14th, 2000, 09:55 AM
#4
Fanatic Member
You can't do it client-side though, because of security reason's as you wouldn't want to go to a page that opened your shell and typed format c:\ in it
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|