471,310 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

how do you debug this

The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.
Dec 28 '05 #1
8 1024
If you are on XP or 2000:
open ControlPanel->AdministrativeTools->ComputerManagement. Then under
"Shared Folders" click "Open files" subtree. It should show which
process is the locker.

--
Vit Zayko
Dec 28 '05 #2

"Vitaly Zayko" <vitaly_at_zayko_dot_net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If you are on XP or 2000:
open ControlPanel->AdministrativeTools->ComputerManagement. Then under
"Shared Folders" click "Open files" subtree. It should show which process
is the locker.

--
Vit Zayko


Not at all, this is for files opened from a remote client through a network
session.

Willy.
Dec 28 '05 #3

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.


If only VS is running, it's VS that is accessing the file, are you sure
there is no application started from within VS that has the file open?

Willy.
Dec 28 '05 #4
Check all of the services running on ur PC
Dec 28 '05 #5
You can use SysInternals' freeware ProcessExplorer (
http://www.sysinternals.com/Utilitie...sExplorer.html ) to search
for open handles and other useful stuff.

Dec 28 '05 #6

"Rahul Goel" <ra*********@gmail.com> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
Check all of the services running on ur PC


Why?

Willy.
Dec 28 '05 #7
> You can use SysInternals' freeware ProcessExplorer (
http://www.sysinternals.com/Utilitie...sExplorer.html ) to search
for open handles and other useful stuff.


Or even easier, their Handle utility for command-line use. This is one of my
favorites.

http://www.sysinternals.com/Utilities/Handle.html

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Dec 28 '05 #8
This often happens with me after viewing a file or folder's properties
using Explorer on XP Professional. Sometimes for no apparent reason,
Explorer appears to lose track of the open file descriptor, and I must
log off completely (or kill explorer.exe) to delete the file or folder
in question.

As with what other people have said, the SysInternals utilities prove
extremely valuable when figuring out problems such as this.
David.
Howard wrote:
The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.

Dec 28 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by emma middlebrook | last post: by
10 posts views Thread by John Smith | last post: by
12 posts views Thread by nospam | last post: by
9 posts views Thread by dee | last post: by
6 posts views Thread by Andrew Rowley | last post: by
1 post views Thread by Alexander Vasilevsky | last post: by
reply views Thread by rosydwin | last post: by

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.