Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Delete a file occupied by Windows? Posted by bLaGoYe on 24 Nov 2000 at 4:55 PM
How is it possible 2 delete a file used by Windows 98? Does anyone knows how to perserve a file from deleting, so the error message should apear like as the file was used by windows? Lots of trojans and viruses use it, so they can't be deleted....Thanx in advane!


Edit Report
Re: Delete a file occupied by Windows? Posted by Sephiroth on 24 Nov 2000 at 5:15 PM
Only way I can think of off the top of my head is to set the +s or +r flags (system file/read only). I'll go back and see how I did it with my temporary files though. If what I stated here doesn't work, let me know.<br>
<br>
-Seph<br>



Edit Report
Re: Re: Delete a file occupied by Windows? Posted by bLaGoYe on 25 Nov 2000 at 4:39 PM
No man... That's not it...<br>
They can also be deleted. <br>
That's the thing with those trojans/viruses they have ordinary attributes.


Edit Report
Re: Re: Re: Delete a file occupied by Windows? Posted by Seohiroth on 25 Nov 2000 at 6:09 PM
OK, only other way I can think of would be to have it open for access, even if you don't ever write or read from it. If you try deleting a file that is opened, it usually says something along the lines of "File is in use by Windows..." and won't delete it. Hope that helps.<br>
<br>
-Seph


Edit Report
Re: Delete a file occupied by Windows? Posted by Hasan on 20 Dec 2000 at 3:08 PM
Hi. If the application is being used by Windows, then you can either post the message 'PostMessage(hwnd, WM_CLOSE, 0, 0)' to Windows or delete the application through DOS.<br>
Hope that helps <br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.