How to delete .exe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prakashsakthivel
    New Member
    • Oct 2007
    • 57

    How to delete .exe

    Hi Everybody

    I am new member of thif forum.
    Hope I can learn and get valuable information in this forum


    what i need is

    how to delete .exe, which is being currently used
    from this .exe,


    urgent could anybody please give solution for this.

    thanks
    prakashsakthive l
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    If you mean that you want an executing program to delete itself, I doubt that's possible since the Exe file would be open. But why don't you try using the Kill statement, and see what happens?

    Comment

    • prakashsakthivel
      New Member
      • Oct 2007
      • 57

      #3
      Originally posted by Killer42
      If you mean that you want an executing program to delete itself, I doubt that's possible since the Exe file would be open. But why don't you try using the Kill statement, and see what happens?

      thanks for Replaying

      I used Kill, File System object

      even I used everything, I got message like "Permission denied"

      Afterwards what i did

      create another .exe from this application and close old .exe
      with use of shell command
      then Delete that old .exe from new .exe
      woking fine..

      but I faced some problem

      1) new .exe is visible

      2) Immediately we can't delete old .exe, i think needs some time

      so i need solution

      Regards

      prakash

      Comment

      • Ali Rizwan
        Banned
        Contributor
        • Aug 2007
        • 931

        #4
        Hello,
        Do this.

        Make two exes one in invisible mode or made it with a label captioned Processing.
        Now when ever you click the button in main exe main exe will closed or terminated and exe2 will executed.
        On formload event of exe2 write the code for deleting the main exe file.
        Now you will not find any error.
        Or some thing else

        GOODLUCK
        ALI

        Comment

        • prakashsakthivel
          New Member
          • Oct 2007
          • 57

          #5
          Originally posted by Ali Rizwan
          Hello,
          Do this.

          Make two exes one in invisible mode or made it with a label captioned Processing.
          Now when ever you click the button in main exe main exe will closed or terminated and exe2 will executed.
          On formload event of exe2 write the code for deleting the main exe file.
          Now you will not find any error.
          Or some thing else

          GOODLUCK
          ALI

          Thanks Mr.ali

          I did what You said.
          still I got msg like permission denied

          is any way to do if there is could you please tell me about that


          Regards
          prakash..

          Comment

          • Ali Rizwan
            Banned
            Contributor
            • Aug 2007
            • 931

            #6
            Originally posted by prakashsakthive l
            Thanks Mr.ali

            I did what You said.
            still I got msg like permission denied

            is any way to do if there is could you please tell me about that


            Regards
            prakash..
            Here is a Demonstration.
            In the attachment you will found two exes named Kill me.exe and Kill.exe execute Kill Me.exe and see what happened.

            GOODLUCK
            ALI

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              I removed the .zip attachment. Unaware users might harm their computer by
              accidentally running the .exe files in that zip. Next time better just post the
              source code in your reply.

              kind regards,

              Jos

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Originally posted by JosAH
                I removed the .zip attachment. Unaware users might harm their computer by
                accidentally running the .exe files in that zip. Next time better just post the
                source code in your reply.
                How dangerous were they? If one of them runs the other, which then deletes the first one, it doesn't sound too risky.
                Last edited by Killer42; Oct 20 '07, 01:49 AM.

                Comment

                • Ali Rizwan
                  Banned
                  Contributor
                  • Aug 2007
                  • 931

                  #9
                  Originally posted by JosAH
                  I removed the .zip attachment. Unaware users might harm their computer by
                  accidentally running the .exe files in that zip. Next time better just post the
                  source code in your reply.

                  kind regards,

                  Jos
                  Is it unsecure code?
                  It just deletesitself neither the other exes So it doesnot create panicn for users.

                  Deleting zip is a bad idea

                  Comment

                  • prakashsakthivel
                    New Member
                    • Oct 2007
                    • 57

                    #10
                    Originally posted by Ali Rizwan
                    Is it unsecure code?
                    It just deletesitself neither the other exes So it doesnot create panicn for users.

                    Deleting zip is a bad idea
                    Hi Friends,

                    Thanks for Replaying.


                    With Regrds

                    Prakash.S

                    Comment

                    Working...