472,126 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 1011

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.