Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Running files from delphi

Good day all i'm currently busy trying to make a file organiser from delphi, all i would still like the program to do is to run the documents that have been organised.

File are PDF, Word, Excel basically all api32 type of files and i would like to know if there is a way that if I click on the file that i can open the file, i don't need to open the file with in the program just say its a pdf type file when i select it i would like acrobat reader to open on the computer like as if i opened the file from explorer.

Could some one point me in the right direction please :)

Thanks

Simon

Comments

  • zibadianzibadian Member Posts: 6,349
    : Good day all i'm currently busy trying to make a file organiser from
    : delphi, all i would still like the program to do is to run the
    : documents that have been organised.
    :
    : File are PDF, Word, Excel basically all api32 type of files and i
    : would like to know if there is a way that if I click on the file
    : that i can open the file, i don't need to open the file with in the
    : program just say its a pdf type file when i select it i would like
    : acrobat reader to open on the computer like as if i opened the file
    : from explorer.
    :
    : Could some one point me in the right direction please :)
    :
    : Thanks
    :
    : Simon
    You can use the ShellExecute() function for that. If you want to keep track of the child process and be notified when it closes, then the CreateProcess() is needed.
    ShellExecute() is defined in the ShellApi unit.
  • zibadianzibadian Member Posts: 6,349
    : Good day all i'm currently busy trying to make a file organiser from
    : delphi, all i would still like the program to do is to run the
    : documents that have been organised.
    :
    : File are PDF, Word, Excel basically all api32 type of files and i
    : would like to know if there is a way that if I click on the file
    : that i can open the file, i don't need to open the file with in the
    : program just say its a pdf type file when i select it i would like
    : acrobat reader to open on the computer like as if i opened the file
    : from explorer.
    :
    : Could some one point me in the right direction please :)
    :
    : Thanks
    :
    : Simon
    You can use the ShellExecute() function for that. If you want to keep track of the child process and be notified when it closes, then the CreateProcess() is needed.
    ShellExecute() is defined in the ShellApi unit.
  • ManagesoftManagesoft Member Posts: 3
    : : Good day all i'm currently busy trying to make a file organiser from
    : : delphi, all i would still like the program to do is to run the
    : : documents that have been organised.
    : :
    : : File are PDF, Word, Excel basically all api32 type of files and i
    : : would like to know if there is a way that if I click on the file
    : : that i can open the file, i don't need to open the file with in the
    : : program just say its a pdf type file when i select it i would like
    : : acrobat reader to open on the computer like as if i opened the file
    : : from explorer.
    : :
    : : Could some one point me in the right direction please :)
    : :
    : : Thanks
    : :
    : : Simon
    : You can use the ShellExecute() function for that. If you want to
    : keep track of the child process and be notified when it closes, then
    : the CreateProcess() is needed.
    : ShellExecute() is defined in the ShellApi unit.

    Thanks it works :)

Sign In or Register to comment.