Running a command line

Results 1 to 2 of 2

Thread: Running a command line

  1. #1
    Join Date
    Dec 1969

    Default Running a command line

    My goal is to run a command line script (a .vbs to be exact). The script i have works great, but every trick i try to make it run on an ASP page results in no error, but the script does not fire. i have tried this with a simple script that runs by a simple double click. Here is an example of my code:<BR><BR>&#060;%<BR>Dim objShell, strCommand<BR>Set objShell=Server.CreateObject("WScript.Shell")<BR>s trCommand="cscript c: hefile.vbs"<BR>ObjShell.Run strCommand, 1, False<BR>Set objShell=Nothing<BR>%&#062;

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Why dont you jsut make it an exe

    and then run that from your ASP page<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts