倚天杖
n=inputbox("请输入路径:","","1.txt")set fso=createobject("scripting.filesystemobject")if fso.fileexists(n) thenif instr(n,"\")=0 thenmsgbox "发现同文件夹有"+n+"文件"elsemsgbox "路径格式正确:"+n+",此文件存在"end ifelseif instr(n,"\")=0 thenmsgbox "路径格式错误或文件不在当前文件夹",16elsemsgbox "路径格式正确:"+n +",此文件不存在"end ifend if