469,632 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

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

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!
Nov 17 '05 #1
6 2247
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!

Nov 17 '05 #2
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!

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

"Tohid" <To********@hotmail.com> wrote in message
news:Or*************@TK2MSFTNGP11.phx.gbl...
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!


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

"Tohid" <To********@hotmail.com> wrote in message
news:Or*************@TK2MSFTNGP11.phx.gbl...
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!


Nov 17 '05 #5
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" <no****@nospamthanks.com> wrote in message
news:ap********************@comcast.com...
Hi,
Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
Thanks,
Lucas

"Tohid" <To********@hotmail.com> wrote in message
news:Or*************@TK2MSFTNGP11.phx.gbl...
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!



Nov 17 '05 #6
No idae about classic asp! upgrade to .net now! :)
"Lucas Cowald" <no****@nospamthanks.com> wrote in message
news:ap********************@comcast.com...
Hi,
Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
Thanks,
Lucas

"Tohid" <To********@hotmail.com> wrote in message
news:Or*************@TK2MSFTNGP11.phx.gbl...
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" <no****@nospamthanks.com> wrote in message
news:FK********************@comcast.com...
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!



Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by jason | last post: by
6 posts views Thread by PiGei | last post: by
9 posts views Thread by PyPK | last post: by
3 posts views Thread by Lyle Fairfield | last post: by
8 posts views Thread by johnlichtenstein | last post: by
1 post views Thread by gglegrp112 | last post: by
7 posts views Thread by ChaosKCW | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.