Link to home
Start Free TrialLog in
Avatar of vividstar
vividstar

asked on

Query : Run a bat file present on local machine from network drive

My c# pgm/exe file resides on network share. (\\share1\mypgm1)
I've a batch file located in my c drive.(C:\userinstall\run.bat).
Whenever I run the pgm/exe on network share from my machine, it should run this batch file present on my machine i.e. on C: drive.
I  tried using System.Diagnostics.Process. But that too did not work.
Could someone please guide me on this.
ASKER CERTIFIED SOLUTION
Avatar of ShazbotOK
ShazbotOK
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vividstar
vividstar

ASKER

I believe I cannot do that as the target machines are 2003 servers hosting lots of services & there are a lot of servers. Is there anyway that I could override it.
one of my friends suggested to do this by setting CASPOL (& add assemblies to full trust assembly list). But I modify the security policy for the machine. So, dropped the idea.