Execute bat file in asp.net localhost -


hi trying execute bat file in asp.net. runs in developer/iis express dosnt in iis. think there permissions. thanks.

  system.diagnostics.process myprocess = new system.diagnostics.process();   myprocess.startinfo = new processstartinfo(@"c:\data\myfile.bat");   myprocess.start();   myprocess.close(); 

check permissions on c:\data\ folder. make sure iis_iusrs has read , execute permissions.

otherwise if application pool configured run using application pool identity feature "synthesised" account called iis apppool\<pool name> created on fly used pool identity. in case there synthesised account called iis apppool\defaultapppool created life time of pool. can add account c:\data\ folder permissions grant access application.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -