Results 1 to 4 of 4

Thread: start commandline utils within vbscript

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Question

    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>


  2. #2
    Guest
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Thanx

    Thanks, must be the solution. I'll give it a try.

    greetings,
    Hans

  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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
  •  



Click Here to Expand Forum to Full Width