Connecting Tech Pros Worldwide Forums | Help | Site Map

Using asp to run a command prompt line

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 5 '09
Hi all,

I am trying to use an ASP page to run a command prompt line on the server but I am totally clueless as I am new to ASP.

Here's the actual command:
C:\SM>SendMail -ini -NoAuth 0 -BodyFile "try.html" -noconfirm -contenttype "text/html"

any ideas?

GazMathias's Avatar
Expert
 
Join Date: Oct 2008
Location: Bristol, United Kingdom
Posts: 145
#2: Aug 5 '09

re: Using asp to run a command prompt line


Hi,

You could try looking at WScript.Shell:

http://msdn.microsoft.com/en-us/libr...ky(VS.85).aspx

You can run into problems with user security etc though...

Gaz
Reply