473,372 Members | 1,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 2487
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 procedure with 2 steps : 1. The procedure deletes...
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 query in the second asp page and I have to pass...
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" extension. But how to "run these files? They are...
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 gets garbage collected. Using fetchmany instead of...
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 query: select * from item where storeid in ('01',...
2
fungazid
by: fungazid | last post by:
Help help help please Im using DBD::mysql, and I want to insert a record into clients table (id, address, and phone-number of a client): my $str= ?,?,?,,,; my...
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 QueryDef, it becomes a select query, and I cannot use...
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 execute con = pymssql.connect(...) cur =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.