Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Delete Application Pin
toxcct15-Oct-07 2:48
toxcct15-Oct-07 2:48 
GeneralRe: How to Delete Application Pin
GauranG Shah15-Oct-07 2:49
GauranG Shah15-Oct-07 2:49 
GeneralRe: How to Delete Application Pin
chandu00415-Oct-07 2:55
chandu00415-Oct-07 2:55 
GeneralRe: How to Delete Application Pin
GauranG Shah15-Oct-07 2:58
GauranG Shah15-Oct-07 2:58 
QuestionRe: How to Delete Application [almost SOLVED] Pin
GauranG Shah15-Oct-07 3:47
GauranG Shah15-Oct-07 3:47 
AnswerRe: How to Delete Application Pin
David Crow15-Oct-07 3:57
David Crow15-Oct-07 3:57 
GeneralRe: How to Delete Application Pin
GauranG Shah15-Oct-07 4:20
GauranG Shah15-Oct-07 4:20 
GeneralRe: How to Delete Application Pin
David Crow15-Oct-07 4:32
David Crow15-Oct-07 4:32 
Notice that if you put:

del %0.bat

in a batch file and run it from a command prompt, it will remove itself. You can take advantage of this by creating a similar batch file from within the program you are wanting to delete:

:DoItAgain
del MyProg.exe
if exist MyProg.exe goto DoItAgain
rem del folder that MyProg.exe was in
del %0.bat
Use CreateProcess() to run the batch file. Note that I've not actually tested this so you may have to tweak it for your situation (e.g., add paths, hide console window).


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: How to Delete Application[Solved] Pin
GauranG Shah15-Oct-07 4:57
GauranG Shah15-Oct-07 4:57 
QuestionComplete solution [Solved] Pin
GauranG Shah15-Oct-07 19:40
GauranG Shah15-Oct-07 19:40 
AnswerRe: Complete solution [Solved] Pin
David Crow16-Oct-07 2:16
David Crow16-Oct-07 2:16 
Questionunicode help Pin
murali_utr15-Oct-07 1:26
murali_utr15-Oct-07 1:26 
QuestionRe: unicode help Pin
Nishad S15-Oct-07 1:43
Nishad S15-Oct-07 1:43 
AnswerRe: unicode help Pin
Alex Cohn16-Oct-07 2:29
Alex Cohn16-Oct-07 2:29 
GeneralRe: unicode help Pin
Nishad S16-Oct-07 2:38
Nishad S16-Oct-07 2:38 
Questiondisplaying the directories on a combo box Pin
Chandrasekharan P15-Oct-07 0:17
Chandrasekharan P15-Oct-07 0:17 
AnswerRe: displaying the directories on a combo box Pin
chandu00415-Oct-07 0:26
chandu00415-Oct-07 0:26 
AnswerRe: displaying the directories on a combo box Pin
Nibu babu thomas15-Oct-07 0:29
Nibu babu thomas15-Oct-07 0:29 
AnswerRe: displaying the directories on a combo box Pin
Nishad S15-Oct-07 1:05
Nishad S15-Oct-07 1:05 
GeneralRe: displaying the directories on a combo box Pin
revanth198515-Oct-07 1:16
revanth198515-Oct-07 1:16 
GeneralRe: displaying the directories on a combo box Pin
Nishad S15-Oct-07 1:23
Nishad S15-Oct-07 1:23 
GeneralRe: displaying the directories on a combo box Pin
Chandrasekharan P15-Oct-07 1:46
Chandrasekharan P15-Oct-07 1:46 
GeneralRe: displaying the directories on a combo box Pin
revanth198515-Oct-07 1:59
revanth198515-Oct-07 1:59 
GeneralRe: displaying the directories on a combo box Pin
Nishad S15-Oct-07 2:04
Nishad S15-Oct-07 2:04 
GeneralRe: displaying the directories on a combo box Pin
Chandrasekharan P15-Oct-07 2:05
Chandrasekharan P15-Oct-07 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.