472,331 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

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 2352
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jason | last post by:
How does one pass a parameter to the EXEC query recordset: set rs = cnn.execute("EXEC tblListings_qry2")
4
by: Jill Graham | last post by:
Hi, I'm using an access database and found following problem : I have a table X with 2 records : record 1 & record 2. I execute following...
6
by: PiGei | last post by:
hi all, I'm trying to use server.execute statement to include in an asp page another asp page with a parameter. That's because I've a parametric...
9
by: PyPK | last post by:
Hi if I have a function called tmp=0 def execute(): tmp = tmp+1 return tmp also I have def func1(): execute() ....
3
by: Lyle Fairfield | last post by:
MS-SQL Server utilities Enterprise Manager and Query Analyzer will model almost any MS-SQL object as a simple script file with a default ".sql"...
8
by: johnlichtenstein | last post by:
I am using cx_Oracle and MySQLdb to pull a lot of data from some tables and I find that the cursor.execute method uses a lot of memory that never...
1
by: gglegrp112 | last post by:
Is it possible to send an array as a parameter for an execute method in dbapi2 module? I'm using adodbapi and try to perfrom the following SQL...
2
fungazid
by: fungazid | last post by:
Help help help please Iím using DBD::mysql, and I want to insert a record into clients table (id, address, and phone-number of a client): ...
3
by: RAG2007 | last post by:
I'm using the QueryDef and Execute method to update a record in my MySQL backend. Problem: When the Passthrough update query is defined using...
7
by: ChaosKCW | last post by:
Hi I am trying to use pymssql, and have an issue where by the execute (not the fetch) is appearing to load all records into memory. if I...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.