HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

Last post 05-09-2008 9:39 AM by NC01. 6 replies.

Sort Posts:

  • HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 5:59 AM
    HOW CAN I CREATE A FOLDER FOR EVERY USER IN THEIR LOCAL SYSTEM? I have a web application and there is s SUBMIT button. If every users click the SUBMIT button then there must create a folder dynamicaly in the D drive . i have used the code like System.IO.Directory.createdirectory("D:\MyFolder\") Project is in my computer.If i run this project from another system(Compuer B) using my owns system IP then the "MyFolder" in D drive is not created in computer B. I want to create the MyFolder in D drive in Computer B Plz Help.its urgent
  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 9:03 AM
    • Loading...
    • NC01
    • Joined on 08-26-2005, 7:33 PM
    • Posts 6,867
    • TrustedFriends-MVPs

    Web applications do not have permissions to create folders, etc, especially on the client. That is a huge violation. How would you like some web site writing stuff to your hard drive?

    NC...

  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 9:30 AM
    • Loading...
    • blodfox777
    • Joined on 07-12-2007, 12:30 PM
    • Posts 42

    Hi

    Try to use ActiveX Component, But as NC1 said, that is a huge violation...

    function createFolder()
    {
     var fso, fldr, s = "";
     fso = new ActiveXObject("Scripting.FileSystemObject");
     if(!fso.FolderExists("D:\\MyFolder"))
     {
      fso.CreateFolder ("D:\\MyFolder");
      alert("Created folder D:\\MyFolder" + "");
     }
    }

     hope this helps!

    Regards!
    Lance
    -- "Mark As Answer" If my reply helped you --
  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 12:41 PM
    • Loading...
    • uwspstar
    • Joined on 03-23-2008, 8:36 PM
    • Milwaukee
    • Posts 109

    how could you get the permission to set folder on clinet local Pc ?

    owner of AskBargains.com
    MCAD & MCSD


    If you mark as "Answer"other people can use this answer as a reference
  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 1:00 PM
    • Loading...
    • NC01
    • Joined on 08-26-2005, 7:33 PM
    • Posts 6,867
    • TrustedFriends-MVPs

    You can't do it. Each client would have to give permission specifically to the ActiveX object that does it.

    NC...

     

  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-08-2008, 2:37 PM
    • Loading...
    • uwspstar
    • Joined on 03-23-2008, 8:36 PM
    • Milwaukee
    • Posts 109

    NC01:

    You can't do it. Each client would have to give permission specifically to the ActiveX object that does it.

    NC...

     

    totally agree !

    owner of AskBargains.com
    MCAD & MCSD


    If you mark as "Answer"other people can use this answer as a reference
  • Re: HOW CAN I CREATE A FOLDER THROUGH MACHINE IP TO EVERY USER IN THEIR LOCAL SYSTEM?

    05-09-2008, 9:39 AM
    • Loading...
    • NC01
    • Joined on 08-26-2005, 7:33 PM
    • Posts 6,867
    • TrustedFriends-MVPs

    uwspstar:

    NC01:

    You can't do it. Each client would have to give permission specifically to the ActiveX object that does it.

    NC...

     

    totally agree !

    Yeah, would you really want some web page reading your hard drive? I don't think so!

    NC...

     

Page 1 of 1 (7 items)