By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,710 Members | 1,613 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,710 IT Pros & Developers. It's quick & easy.

System.Diagnostics.Process & Dual-Server Environment

P: n/a
In my code I have created a Process for opening up a command line
executable using System.Diagnostics.Process that imports a csv full of
Generic Authorization account information to numerous tables (SQL). When
the executable resides on the same server as my application the import
works fine. When my application is executed a new text file is created
in the folder listed below. The process arguments ent=1 and store=1 know
to look in ent001/store001 for the import file. I know it is possible to
create and open a file in a single-server environment as I have tested
this. What would I need to do (permissions, sharing, etc...) to allow
the creation and importation of the csv file in a dual-server
environment? The servers will always be on the same network.

Thanks in advance,

- Will

// write CSV file
TextWriter tw = new
StreamWriter(@"\\server\ent001\store001\ga_imp2.tx t", false,
tw.WriteLine(yada + "," + yada + "," + yada);


private void ImportGA()
Process proc = new Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.Arguments = "/Ent=1 /Store=1";
proc.StartInfo.WorkingDirectory = @"\\server\share\sys_exe";
proc.StartInfo.FileName = "ga_imp2.exe";


catch(Exception ex)


*** Sent via Developersdex ***
Jul 30 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.