Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > RUN/execute a Command-Line command from an ASP page
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th January 15:55
lucas cowald
External User
 
Posts: 1
Default 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!
  Reply With Quote


  sponsored links


2 25th January 15:55
kyle m. burns
External User
 
Posts: 1
Default RUN/execute a Command-Line command from an ASP page



You'll need to either build or buy a component to do this for you because
ASP doesn't intrinsically support this functionality. I believe that there
is a component call ASPExec that does this quite well.
  Reply With Quote
3 25th January 15:55
michael harris \(mvp\)
External User
 
Posts: 1
Default RUN/execute a Command-Line command from an ASP page


No need to buy or build. There are several ways to do this 'out of the box'
on W2K and higher. Older OSes are also supported via separate standalone
installs...


1) WSH supplies a WScript.Shell object with a Run method that can be used in
this context as well.

2) The Shell.Application object has a ShellExecute method.

3) WMI has a Win32_Process object with a Create method.


--
Michael Harris
Microsoft.MVP.Scripting

Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 do***entation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666