RUN/execute a Command-Line command from an ASP page.

Discussion in 'ASP .Net' started by Lucas Cowald, Oct 22, 2003.

  1. Lucas Cowald

    Lucas Cowald Guest

    Hi,
    I need to RUN/execute a Command-Line command from an ASP page.

    This is the command:
    sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p

    Can you show me a code how to run this command from an ASP page? I need to
    run it from an ASP/VBscript?

    Thank you very much for your help!
     
    Lucas Cowald, Oct 22, 2003
    #1
    1. Advertising

  2. Lucas Cowald

    Tohid Guest

    Hi,

    Have you tried "Shell" function (VB.NET)?

    Public Function Shell( _
    ByVal Pathname As String, _
    Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
    Optional ByVal Wait As Boolean = False, _
    Optional ByVal Timeout As Integer = -1 _
    ) As Integer


    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    "Lucas Cowald" <> wrote in message
    news:...
    > Hi,
    > I need to RUN/execute a Command-Line command from an ASP page.
    >
    > This is the command:
    > sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p
    >
    > Can you show me a code how to run this command from an ASP page? I need to
    > run it from an ASP/VBscript?
    >
    > Thank you very much for your help!
    >
    >
     
    Tohid, Oct 22, 2003
    #2
    1. Advertising

  3. Lucas Cowald

    Lucas Cowald Guest

    Hi,
    Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
    Thanks,
    Lucas

    "Tohid" <> wrote in message
    news:OrTg$...
    > Hi,
    >
    > Have you tried "Shell" function (VB.NET)?
    >
    > Public Function Shell( _
    > ByVal Pathname As String, _
    > Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
    > Optional ByVal Wait As Boolean = False, _
    > Optional ByVal Timeout As Integer = -1 _
    > ) As Integer
    >
    >
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    > "Lucas Cowald" <> wrote in message
    > news:...
    > > Hi,
    > > I need to RUN/execute a Command-Line command from an ASP page.
    > >
    > > This is the command:
    > > sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p
    > >
    > > Can you show me a code how to run this command from an ASP page? I need

    to
    > > run it from an ASP/VBscript?
    > >
    > > Thank you very much for your help!
    > >
    > >

    >
    >
     
    Lucas Cowald, Oct 22, 2003
    #3
  4. Lucas Cowald

    Lucas Cowald Guest

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

    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
    %>

    Thank you very much for your help.
    Lucas


    "Lucas Cowald" <> wrote in message
    news:...
    > Hi,
    > Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
    > Thanks,
    > Lucas
    >
    > "Tohid" <> wrote in message
    > news:OrTg$...
    > > Hi,
    > >
    > > Have you tried "Shell" function (VB.NET)?
    > >
    > > Public Function Shell( _
    > > ByVal Pathname As String, _
    > > Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
    > > Optional ByVal Wait As Boolean = False, _
    > > Optional ByVal Timeout As Integer = -1 _
    > > ) As Integer
    > >
    > >
    > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    > > "Lucas Cowald" <> wrote in message
    > > news:...
    > > > Hi,
    > > > I need to RUN/execute a Command-Line command from an ASP page.
    > > >
    > > > This is the command:
    > > > sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p
    > > >
    > > > Can you show me a code how to run this command from an ASP page? I

    need
    > to
    > > > run it from an ASP/VBscript?
    > > >
    > > > Thank you very much for your help!
    > > >
    > > >

    > >
    > >

    >
    >
     
    Lucas Cowald, Oct 23, 2003
    #4
  5. Lucas Cowald

    Tohid Guest

    No idae about classic asp! upgrade to .net now! :)
    "Lucas Cowald" <> wrote in message
    news:...
    > Hi,
    > Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
    > Thanks,
    > Lucas
    >
    > "Tohid" <> wrote in message
    > news:OrTg$...
    > > Hi,
    > >
    > > Have you tried "Shell" function (VB.NET)?
    > >
    > > Public Function Shell( _
    > > ByVal Pathname As String, _
    > > Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
    > > Optional ByVal Wait As Boolean = False, _
    > > Optional ByVal Timeout As Integer = -1 _
    > > ) As Integer
    > >
    > >
    > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    > > "Lucas Cowald" <> wrote in message
    > > news:...
    > > > Hi,
    > > > I need to RUN/execute a Command-Line command from an ASP page.
    > > >
    > > > This is the command:
    > > > sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p
    > > >
    > > > Can you show me a code how to run this command from an ASP page? I

    need
    > to
    > > > run it from an ASP/VBscript?
    > > >
    > > > Thank you very much for your help!
    > > >
    > > >

    > >
    > >

    >
    >
     
    Tohid, Oct 23, 2003
    #5
    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

    RUN/execute a Command-Line command from an ASP page

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    255
    Genich
    Oct 22, 2003
  2. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    219
    Oliver
    Oct 22, 2003
  3. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    187
    Lucas Cowald
    Oct 22, 2003
  4. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    245
    Lucas Cowald
    Oct 22, 2003
  5. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    158
    Lucas Cowald
    Oct 22, 2003
Loading...

Share This Page