string path = AppDomain.CurrentDomain.BaseDirectory + "Back";
if(!Directory.Exists(path))  
    Directory.CreateDirectory(path)

解决方案 »

  1.   

    Process p = new Process(); 
    p.StartInfo.WorkingDirectory = 路径;
    p.StartInfo.FileName="程序.exe";
    p.StartInfo.Arguments = "参数"
    p.Start();
      

  2.   

    那个被启动的EXE的代码我无法修改的,有什么办法可以让它认为现在的启动路径就是它当前所在的目录?
      

  3.   

    谢谢版主,我要的应该是p.StartInfo.WorkingDirectory 这个
      

  4.   

    1楼正解.
    不要直接使用相对路径,相对路径在很多情况下是会改变的.
    比如你使用了openfiledialog选择了路径
    相对路径默认是程序启动路径,而你用其他程序调用此程序,启动路径就变成了调用它的程序的路径.