My Script to run a Command-Line from ASP does not work.

Discussion in 'ASP .Net Building Controls' started by Lucas Cowald, Oct 23, 2003.

  1. Lucas Cowald

    Lucas Cowald Guest

    Hi,
    My Script to run a Command-Line from ASP does not work. No errors are
    returned either.
    It is on IIS. The directory where the script exists is on Drive I:, The
    executable .exe is on Drive D:
    Do you see any problems with the script below? Can you help me modify it?

    <%
    Dim objWSS
    Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
    2 -p"
    Set objWSS = CreateObject("WScript.Shell")
    objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
    objWSS.Run "%COMSPEC% /c " & cCMD,,True
    %>
     
    Lucas Cowald, Oct 23, 2003
    #1
    1. Advertising

  2. Hi Lucas,

    I believe you could get better luck by posting to a ASP newgroups; this one
    is currently for ASP.NET and its about building custom controls.

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    http://obies.com/vga/blog.aspx

    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

    and not by private mail.
    "Lucas Cowald" <> wrote in message
    news:D...
    > Hi,
    > My Script to run a Command-Line from ASP does not work. No errors are
    > returned either.
    > It is on IIS. The directory where the script exists is on Drive I:, The
    > executable .exe is on Drive D:
    > Do you see any problems with the script below? Can you help me modify it?
    >
    > <%
    > Dim objWSS
    > Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
    > 2 -p"
    > Set objWSS = CreateObject("WScript.Shell")
    > objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
    > objWSS.Run "%COMSPEC% /c " & cCMD,,True
    > %>
    >
    >
     
    Victor Garcia Aprea [MVP], Oct 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lucas Cowald
    Replies:
    0
    Views:
    411
    Lucas Cowald
    Oct 23, 2003
  2. Lucas Cowald

    My Script to run a Command-Line from ASP does not work.

    Lucas Cowald, Oct 23, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    149
    Lucas Cowald
    Oct 23, 2003
  3. Lucas Cowald

    My Script to run a Command-Line from ASP does not work.

    Lucas Cowald, Oct 23, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    123
    Lucas Cowald
    Oct 23, 2003
  4. Lucas Cowald

    My Script to run a Command-Line from ASP does not work

    Lucas Cowald, Oct 23, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    148
    Axel Dahmen
    Oct 23, 2003
  5. Lucas Cowald

    My Script to run a Command-Line from ASP does not work

    Lucas Cowald, Oct 23, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    148
    Lucas Cowald
    Oct 23, 2003
Loading...

Share This Page