Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy

    help how to Remove [ i'm back :p]

    hello mPgH ...[ all] [ I'm back with more Questions ]...
    okay ..
    how i can make the program when Exit Remove self ??
    ?? help
    and thank you
    of you don't understand just say please don't spam /yea/yea

    Edit : added ..[ I'm back with more Questions ]...

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    try it on form close event...

    io.file.delete or something like that...
    my.computer.filesystem.delete...

    If that does not work, you cannot do it since you cannot delete your program while you are accesssing it.



  3. #3
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    [php]Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    My.Computer.FileSystem.DeleteFile(processdir & "nametheprogram", FileIO.UIOption.OnlyErrorDialogs)
    End Sub[/php]
    ??

  4. #4
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    I'm not sure you can because you are running it while trying to delete it.
    Assembly Programmer

  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Code:
    Imports System.IO
    Public Class Form1
    
        Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
            Dim start As String = Application.StartupPath
            Dim name As String = "Program Name.exe"
    
            File.Delete(Path.Combine(start, name))
        End Sub
    
    End Class

    Quote Originally Posted by Shark23 View Post
    I'm not sure you can because you are running it while trying to delete it.
    QFT. Try it though.
    Last edited by Blubb1337; 07-09-2010 at 01:57 AM.



  6. #6
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    Quote Originally Posted by Blubb1337 View Post
    Code:
    Imports System.IO
    Public Class Form1
    
        Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
            Dim start As String = Application.StartupPath
            Dim name As String = "Program Name.exe"
    
            File.Delete(Path.Combine(start, name))
        End Sub
    
    End Class
    I do not want name specific...
    Whatever name i wanna to delete

  7. #7
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    ^Can you state that more clearly?


    As an example, I would liken this to trying to delete your C: drive. You can't because you are running on it.
    Assembly Programmer

  8. #8
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    Quote Originally Posted by Shark23 View Post
    ^Can you state that more clearly?


    As an example, I would liken this to trying to delete your C: drive. You can't because you are running on it.
    this Program..
    and you can Remove it when Exit...
    look Exit ... Understand it NO use

  9. #9
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    When exiting you are STILL using it. But try my code above to see if it works at all.



  10. #10
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    Quote Originally Posted by Blubb1337 View Post
    When exiting you are STILL using it. But try my code above to see if it works at all.
    hey what about the name No help ??

  11. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by Blubb1337 View Post
    When exiting you are STILL using it. But try my code above to see if it works at all.
    Enter your current name to see IF IT IS WORKING AT ALL.



  12. #12
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    isn't work

  13. #13
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    You can't change anything about an application that's running pretty much, I.E you can't delete it.

    That means there's no way to use a program to delete itself. For it's code to be active, the application has to be open, meaning you can't delete it.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  14. #14
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Save a .bat on form closing.
    Start the bat(obviously).

    Let the .bat sleep for a second and afterwards delete it.

    Idk any other solution ^^



  15. #15
    DayumKen's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Houston, Texas, USA.
    Posts
    130
    Reputation
    10
    Thanks
    46
    My Mood
    Inspired
    He has really bad grammar, and it's pretty much impossible. You can't delete an application you're using. And even on exit, it's still using the codes from the program. No durr. /Request close thread.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] Help! How to break Ahn Hack shield program?
    By leekang in forum Vindictus Help
    Replies: 1
    Last Post: 06-02-2011, 10:38 AM
  2. [Help]How to get ur acc back when scammed?
    By MarketEngineer in forum CrossFire Help
    Replies: 8
    Last Post: 09-30-2010, 11:42 PM
  3. How to place LTB file back in .rez file (help) Hex edited
    By washer123 in forum Combat Arms Mod Discussion
    Replies: 1
    Last Post: 08-31-2010, 03:05 AM
  4. Replies: 5
    Last Post: 05-30-2010, 10:40 AM
  5. Help! how to use ardamax keylogg
    By gmgundamx7 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 02-28-2007, 04:43 PM