Results 1 to 5 of 5

Thread: Get info on client file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    ja
    Posts
    82

    Question Get info on client file

    I´ve made a program and now i would like the users of the program to be able to download updates from my website. I want the user to show where the EXE-file on their computer is, so i can check version number, size and name of the file.

    Can i do this without some kind of component?

    I´ve made this so far :
    HTML Code:
    <FORM METHOD=POST ENCTYPE="multipart/form-data" ACTION="downloadFile.asp">
    <INPUT TYPE=FILE NAME="FileName" size="20"><BR>
    <INPUT TYPE=SUBMIT VALUE="Submit" NAME="upfile">
    </FORM>


    Right now i´m looking in the forum, but i haven´t found anything good yet
    Hej på dej!

  2. #2
    Addicted Member
    Join Date
    Jun 2005
    Posts
    139

    Re: Get info on client file

    Q1. Do you want to upload the file from client to server first? It appears so from your code.

    You can read the file on client using ActiveX component "Scripting.FileSystemObject". You can use Javascript or vbscript to create this object on the client. The only catch in this method is that the security setting of the browser should allow the running of ActiveX scripts on the client.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    ja
    Posts
    82

    Re: Get info on client file

    Quote Originally Posted by pranoy
    Q1. Do you want to upload the file from client to server first? It appears so from your code.

    You can read the file on client using ActiveX component "Scripting.FileSystemObject". You can use Javascript or vbscript to create this object on the client. The only catch in this method is that the security setting of the browser should allow the running of ActiveX scripts on the client.
    If i don´t have to, i´d rather not upload the file to the server. Do i need to install an ActiveX component on the server to do this?
    Hej på dej!

  4. #4
    Addicted Member
    Join Date
    Jun 2005
    Posts
    139

    Re: Get info on client file

    You dont need to install this ActiveX component, it already exists. But if you want to invoke ActiveX on the client PC through browser, then the security settings in the browser of the client setting should be set to allow the execution of ActiveX scripts.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    ja
    Posts
    82

    Re: Get info on client file

    Quote Originally Posted by pranoy
    You dont need to install this ActiveX component, it already exists. But if you want to invoke ActiveX on the client PC through browser, then the security settings in the browser of the client setting should be set to allow the execution of ActiveX scripts.
    Ok, thanks for the help
    Hej på dej!

Posting Permissions

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



Click Here to Expand Forum to Full Width