469,574 Members | 1,662 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,574 developers. It's quick & easy.

System.Diagnostics.Process & Dual-Server Environment

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 http://www.developersdex.com ***
Jul 30 '06 #1
0 970

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Microsoft News | last post: by
1 post views Thread by Morten | last post: by
reply views Thread by Colin Williams | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.