Results 1 to 9 of 9

Thread: self destruct after execute? (Resolved)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    self destruct after execute? (Resolved)

    Hi,
    Is it possible to write a stand-alone program and compile it to .exe where user can run once and it won't run again? I am trying to make this simple enough so I don't want to depend on using the inet components or even the time/date function.

    Any helps would be greatly appreciated.

    PhiL
    Last edited by Iat; Jul 3rd, 2004 at 11:58 AM.

  2. #2

  3. #3
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    Might I ask what a stand alone program is?



    alacritous

  4. #4

  5. #5
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    Thanks, I thought it was some other mysterious thing.

    alacritous

  6. #6
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    Well i was under the impression c++ creates standalone exes ..not needed runtime files etc

    VB however requires them . so they are not standalone


    uhh why do u need program to run once and not work again?
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  7. #7
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    Here is a module that you can add to your project that will delete the exe when it is unloaded. There is a commented section in the module that shows the proper usage.
    Attached Files Attached Files

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    resolved

    Thanks MarkT. I was nearly convince that was not possible. But the program you posted does work.

    Thanks again,

    PhiL

    BTW, I am using the sendkeys to execute and login to a remote system with an onetime password encapsulated on an .exe file.

  9. #9
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    Iat, you need Resolved on the first topic header not the last.

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