Home > Ask the Microsoft .Net Development Experts > Questions & Answers > Command prompt doesn't run on server
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Command prompt doesn't run on server

Daniel Cazzulino EXPERT RESPONSE FROM: Daniel Cazzulino

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site
>
QUESTION POSED ON: 10 August 2003
I have tried to run the command prompt on a server using System.Diagnostics.Process.Start ("cmd"), but the command prompt doesn't show. Do I have to give any extra rights to the Web application in IIS?

>
EXPERT RESPONSE
Why would you want to show a UI window on a server? Most probably, nobody will be there to enter a key press! Since ASP.NET is a service account (and process) it can't start UI windows, even if you put the account in the Administrators group or even change the processModel section in machine.config to force it to use a more privileged account. So, as far as I know, there's no way to do that. But again, you should study if such a feature is required for your application.

Starting processes is more of a way to let an independent procedure (maybe a legacy application) to do some work on our behalf and leave the results somewhere (a file, for example), so we can pick it later. Another usage is to perform some sort of "screen scrapping" by using the Process.StartInfo.RedirectStandardOutput and RedirectStandardInput and then reading/writing through the process' StandardOutput/StandardInput streams.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts