File.Exists("%systemroot%\\temp\\1.txt"));1.txt已经建立,为何不能判断出来?
File.Exists("%systemroot%\\temp\\1.txt"));1.txt已经建立,为何不能判断出来? 问题点数:1、回复次数:3Top
1 楼yinweihong()回复于 2006-05-03 20:39:51 得分 0
先取得环境变量("%systemroot%)路径再这么弄..Top
2 楼wuyazhe(wyz&xyl)回复于 2006-05-04 06:45:46 得分 0
真经典了你。dos命令都用来了。Top
3 楼wuyazhe(wyz&xyl)回复于 2006-05-04 06:51:48 得分 0
Dim strWinDir As String = System.Environment.SystemDirectory.Substring( _
0, System.Environment.SystemDirectory.LastIndexOf("\"))
File.Exists(strWinDir + "\temp\1.txt"))Top




