SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2002
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Generate list of clients machine files?

    Hey there

    I want to make an extensive browser/fileupload script inspired on windows Explorer... A server side listing of the files and directories with the home directory specified in the script and a listing of the clients files. The server side part can be found on http://vegeta.evilkalah.be ... The idea now is to make it possible to upload or download (maybe drag and drop) files from on side to the other. I don't know how I best make the client side. So on this part any help is welcome...

    (any comment on the site (http://vegeta.evilkalah.be) so far is welcome too)

    greetz
    Vegeta
    Last edited by vegeta01; Dec 5, 2002 at 18:29.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    This is VERY BAD for security reasons. You should not be trying to access a machine's files! But if you're working with IE/Windows clients only you can start with this:
    Code:
    <script language="javascript" type="text/javascript">
    var FSO = new ActiveXObject("Scripting.FileSystemObject")
    FSO.Open("c:\");
    </script>
    Read up on the FileSystemObject on http://msdn.microsoft.com/.

    Note: I do not advocate the use of this script at all but you asked.

    --Vinnie

  3. #3
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Isn't this more correct?

    var FSO = new ActiveXObject("Scripting.FileSystemObject")
    var fld = FSO.GetFolder("c:\\");
    // Write file names from fld.Files etc etc

  4. #4
    Phil fillup07's Avatar
    Join Date
    May 2002
    Location
    Jacksonville, FL
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, how did you list the server files like that? What language/code?

  5. #5
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by fillup07
    Wow, how did you list the server files like that? What language/code?
    My guess: http://vegeta.evilkalah.be/tree.php

  6. #6
    SitePoint Enthusiast
    Join Date
    Nov 2002
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe
    PHP yes

    (recursive script)

    yes because of security reasons it's quite impossible I believe
    I'll try and see what kind of functionality is manageable
    ...

    thx

  7. #7
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Originally posted by jofa
    Isn't this more correct?

    var FSO = new ActiveXObject("Scripting.FileSystemObject")
    var fld = FSO.GetFolder("c:\\");
    // Write file names from fld.Files etc etc
    Yes jofa, that's more correct. My brain hiccupped while I wrote that last block of code!

    --Vinnie


Bookmarks

Posting Permissions

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