Running a command-line is not something you would really want to do. Your
web host probably won't let you either. To use the command-line you would
need to grant permissions to the ASP.Net engine to do way more than the
asp.net user account should, which is most definitely a no no. Not to
mention most of the tasks you would perform were not designed for being run
from a web-application
Now, since you mentioned a zip file and needing to extract the files, first
thing that you should ask is "where could I find this functionality". If you
go by this approach you can begin to look for ASP.Net capable components
that will perform your task from within ASP.Net. You're in luck though, this
is a fairly easy task. There's an excellent open-source library called
sharpzip that could very well do what you need. Check them out at:
http://www.icsharpcode.net/OpenSource/SharpZipLib/
When looking for components don't forget to look at the component section of
www.asp.net (under resources),
www.411asp.net, and of course
www.sourceforge.net
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"BW" <ba****@hotmail.comwrote in message
news:u$****************@TK2MSFTNGP04.phx.gbl...
How in Asp.net do you run a command line program.
ex. I have a form that allows users to upload files to a directory on the
webserver. If they upload a zip file I want to automatically extract the
files from it. I am very new to ASP programming.
Thanks
BW