Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    actx FSO and GetFolder syntax??

    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)

    Code:
    <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.

    Code:
    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...

    Code:
    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.

  • #2
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Nevermind, I'll cover my mouth, point and laugh mockingly at the mirror

    d:\\images\\reducedforUP\\ ....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •