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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -