나는 콘솔 응용 프로그램 파일에 텍스트를 쓸 일이 그것은 C :/APP1Process.Start를 환경 경로
using (StreamWriter k = new StreamWriter("777.txt"))
k.WriteLine("aa");
내가 가진 또 다른 콘솔 응용 프로그램이 C : 콘솔 응용 프로그램 1을 시작/APP2,
System.Diagnostics.Process.Start("c:/app1/app1.exe");
응용 프로그램 2를 실행할 때 출력 777.txt는 folder1 대신 folder2에있게됩니다. Windows 탐색기에서 응용 프로그램 1을 실행하면 출력 777.txt가 folder1에 있습니다.
나는 environment.path를 추가하려고 시도했지만 문제를 해결하지 못했습니다.