473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
prakashsakthivel
Oct 19 '07 #1
9 1697
Killer42
8,435 Expert 8TB
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?
Oct 19 '07 #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?

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
Oct 19 '07 #3
Ali Rizwan
925 512MB
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
Oct 19 '07 #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

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..
Oct 19 '07 #5
Ali Rizwan
925 512MB
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
Oct 19 '07 #6
JosAH
11,448 Expert 8TB
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
Oct 19 '07 #7
Killer42
8,435 Expert 8TB
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.
Oct 20 '07 #8
Ali Rizwan
925 512MB
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
Oct 20 '07 #9
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
Oct 22 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave | last post by:
Hello all, In the code below, I see the following output: base::operator new(size_t, int) base::base() base::~base() base::operator delete(void *) In the case of an exception being thrown...
1
by: Nimmi Srivastav | last post by:
There's a rather nondescript book called "Using Borland C++" by Lee and Mark Atkinson (Que Corporation) which presents an excellent discussion of overloaded new and delete operators. In fact there...
3
by: Nimmi Srivastav | last post by:
There's a rather nondescript book called "Using Borland C++" by Lee and Mark Atkinson (Que Corporation) which presents an excellent discussion of overloaded new and delete operators. I am...
1
by: Douglas Peterson | last post by:
class Allocator { public: virtual void * Alloc(size_t) = 0; virtual void * Free(void*) = 0; }; class Object { public:
2
by: Dave | last post by:
Hello all, I'd like to find a source on the web that discusses, in a comprehensive manner and in one place, everything about new / delete. It should include overloading operator new, the new...
3
by: silver360 | last post by:
Hello, I'm trying to create a basic Heap manager and i have some question about new/delete overloading. The following code give me this output : >> $./heap >> registered : 0x804d098 >>...
9
by: rohits123 | last post by:
I have an overload delete operator as below ////////////////////////////////// void operator delete(void* mem,int head_type) { mmHead local_Head = CPRMemory::GetMemoryHead(head_type);...
10
by: jeffjohnson_alpha | last post by:
We all know that a new-expression, foo* a = new foo() ; allocates memory for a single foo then calls foo::foo(). And we know that void* p = ::operator new(sizeof(foo)) ; allocates a...
15
by: LuB | last post by:
I am constantly creating and destroying a singular object used within a class I wrote. To save a bit of time, I am considering using 'placement new'. I guess we could also debate this decision -...
29
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I remembered delete is implemented through operator overloading, but I am not quite clear. Could anyone recommend some links about how delete is implemented so that I can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.