rokosz
06-30-2011, 11:29 PM
Can someone confirm this is bizarre by itself, or bizarre because its not allowed?
the following code works fine: (it creates the directory entry on the local/client machine)
<script language=javascript>
var fso=new ActiveXObject("Scripting.FileSystemObject");
CTF=fso.CreateTextFile("d:\Images\ReducedforUp\CFT.XML",true);
But the following gives me Path Not Found.
var fsd=new ActiveXObject("Scripting.FileSystemObject");
theFolder=fsd.GetFolder("D:\Images\ReducedforUP")
</script>
a little search on forums turns that maybe it wants a trailing slash...
var fsd=new ActiveXObject("Scripting.FileSystemObject");
theFolder=fsd.GetFolder("D:\Images\ReducedforUP\")
</script>
But that's, somehow, even more bizarre, because that give me:
Unterminated String Constant.
If you can guide me, please feel free cover your mouth, point and laugh mockingly....but please enlighten me. thanks.
the following code works fine: (it creates the directory entry on the local/client machine)
<script language=javascript>
var fso=new ActiveXObject("Scripting.FileSystemObject");
CTF=fso.CreateTextFile("d:\Images\ReducedforUp\CFT.XML",true);
But the following gives me Path Not Found.
var fsd=new ActiveXObject("Scripting.FileSystemObject");
theFolder=fsd.GetFolder("D:\Images\ReducedforUP")
</script>
a little search on forums turns that maybe it wants a trailing slash...
var fsd=new ActiveXObject("Scripting.FileSystemObject");
theFolder=fsd.GetFolder("D:\Images\ReducedforUP\")
</script>
But that's, somehow, even more bizarre, because that give me:
Unterminated String Constant.
If you can guide me, please feel free cover your mouth, point and laugh mockingly....but please enlighten me. thanks.