读书人

新手请问vb.netweb程序使用相对路径判

发布时间: 2012-05-12 15:39:31 作者: rapoo

新手请教vb.netweb程序使用相对路径判断文件是否存在
'File.Exists("~/1.txt")
'Application.StartupPath() App.Path 都不行啊

[解决办法]
File.Exists(Server.MapPaht("~/1.txt"))

读书人网 >VB Dotnet

热点推荐