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.
.NET ProgrammingC#

Avatar of undefined
Last Comment
vividstar

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ShazbotOK

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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.
vividstar

ASKER
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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck