Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标题是我的问题。我不知道我的项目将部署到的 Web 服务器的详细信息。在一个类中,我在项目目录中执行一个批处理文件。我应该说“C:\Inetpub\wwwroot\etcetcetc”并希望最好吗?
http://msdn.microsoft.com/en-us/library/ms524632.aspx
尝试,
Server.MapPath(ResolveUrl("~/"))