C# Executable Executing directory

前端 未结 8 1982
庸人自扰
庸人自扰 2020-12-11 02:38

What is the best method of getting the path the C# executable is running from?

I need to use it for temp folders etc and currently I\'m using:

Path.G         


        
8条回答
  •  执念已碎
    2020-12-11 03:03

    Not an accurate answer to your question, however I would suggest to have a look at:

    Path.GetTempFileName()
    

    http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx

提交回复
热议问题