Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RUN/execute a Command-Line command from an ASP page.

Reply
Thread Tools

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

 
 
Lucas Cowald
Guest
Posts: n/a
 
      10-22-2003
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!


 
Reply With Quote
 
 
 
 
Tohid
Guest
Posts: n/a
 
      10-22-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>
>



 
Reply With Quote
 
 
 
 
Lucas Cowald
Guest
Posts: n/a
 
      10-22-2003
Hi,
Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
Thanks,
Lucas

"Tohid" <(E-Mail Removed)> wrote in message
news:OrTg$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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!
> >
> >

>
>



 
Reply With Quote
 
Lucas Cowald
Guest
Posts: n/a
 
      10-23-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
> Thanks,
> Lucas
>
> "Tohid" <(E-Mail Removed)> wrote in message
> news:OrTg$(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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!
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Tohid
Guest
Posts: n/a
 
      10-23-2003
No idae about classic asp! upgrade to .net now!
"Lucas Cowald" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> Do you know how to do it in ASP/VBscript? I haven't learned .NET, yet.
> Thanks,
> Lucas
>
> "Tohid" <(E-Mail Removed)> wrote in message
> news:OrTg$(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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!
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RUN/execute a Command-Line command from an ASP page Lucas Cowald ASP .Net Building Controls 1 10-22-2003 04:26 PM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net Datagrid Control 1 10-22-2003 12:22 PM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net Web Controls 0 10-22-2003 11:15 AM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net Security 0 10-22-2003 11:15 AM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net Mobile 0 10-22-2003 11:15 AM



Advertisments