function ShowAbsolutePath(path)
{
var fso, s= "";
fso = new ActiveXObject("Scripting.FileSystemObject");
s += fso.GetAbsolutePathName(path);
return(s);
}
{
var fso, s= "";
fso = new ActiveXObject("Scripting.FileSystemObject");
s += fso.GetAbsolutePathName(path);
return(s);
}
看看这样行不行,如果不行把全部代码放上来,这样才好帮你解决;
<script>
var path="d:\\test\\txt\\1.txt"
var fso = new ActiveXObject("Scripting.FileSystemObject");
fsoFile = fso.GetFile(path);
FilePath = fsoFile.path.toUpperCase()
document.write (FilePath)
//-->
</SCRIPT>