Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

Delete files in use

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sgr - 28 Aug 2006 12:41 GMT
Hello.

I'm trying to do a program that delete some files and registry entries, Is
there any way to delete the files that "are in use".

Thanks in advance.
Philip Daniels - 28 Aug 2006 13:02 GMT
>Hello.
>
>I'm trying to do a program that delete some files and registry entries, Is
>there any way to delete the files that "are in use".
>
>Thanks in advance.

You place a "RunOnce" entry in the registry and reboot the computer.
Google or MSDN has all the info you need.

--
Philip Daniels
Ignacio Machin ( .NET/ C# MVP ) - 28 Aug 2006 14:00 GMT
Hi,

You have to close the associated application.  Or do a reboot and place the
program in the RunOnce entry in the registry :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

Signature

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

> Hello.
>
> I'm trying to do a program that delete some files and registry entries, Is
> there any way to delete the files that "are in use".
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.