I am struggling to get the proper permissions to execute a Shell() command on an app installed to a local machine. I have a batch file in my custom directory that executes fine when I compile (f5):
However, when I publish to my local IIS and run the app, the command fails silently, even though I have embedded the same batch file in my app and web directory:
Note: the commented lines in the first screen shot show my earlier attempts, where I wrapped the actual command I was after into a batch file after several failures. I say failures, but all of these worked when I compiled, but not when I published.
I know the command itself works, because I can enter the same command (C:\inetpub\wwwroot\CatformsRecords\WebApp/RunRemark345.bat) at the command prompt on my computer and it runs fine.
It seems that it has to be a permissions issue, yet I have given the folders all the permissions they need, and it makes no difference.
The backslash/forward slash variations don't seem to make a difference either.
I followed this post: viewtopic.php?f=7&t=83524&hilit=shell+command to get to where I am now.