Discussion:
Unlock files
(too old to reply)
dwalsh
2005-03-15 13:51:08 UTC
Permalink
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Jerold Schulman
2005-03-15 14:19:40 UTC
Permalink
Post by dwalsh
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Open a CMD.EXE windows and type
net file /?

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
dwalsh
2005-03-15 14:55:03 UTC
Permalink
Thanks, but I am confused. Should the syntax be netfile/"the name of the
file"?
Post by Jerold Schulman
Post by dwalsh
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Open a CMD.EXE windows and type
net file /?
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
Jerold Schulman
2005-03-15 16:41:46 UTC
Permalink
Post by dwalsh
Thanks, but I am confused. Should the syntax be netfile/"the name of the
file"?
Post by Jerold Schulman
Post by dwalsh
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Open a CMD.EXE windows and type
net file /?
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
no.

Type net file and get a list of open files, with teir ID
Then
net file ID /CLOSE


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
dwalsh
2005-03-15 16:55:02 UTC
Permalink
Thanks so much for your help, I got it to work.
Post by Jerold Schulman
Post by dwalsh
Thanks, but I am confused. Should the syntax be netfile/"the name of the
file"?
Post by Jerold Schulman
Post by dwalsh
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Open a CMD.EXE windows and type
net file /?
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
no.
Type net file and get a list of open files, with teir ID
Then
net file ID /CLOSE
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
Sandra Poh
2009-10-09 03:22:01 UTC
Permalink
Hi dwalsh and Jerold,
Sorry to interrupt in this thread. I have one Excel File (Let say
sandra.xls) that I shared on a network. But when I opened the file, it said
"sandra.xls" is locked for editing by Poh, Sandra. (That is me).

I tried the method via command prompt as mentioned below.
01) Mapped my network to a drive (namely S: drive).
02) Open command prompt.
03) Change the current drive to network drive S: drive.
04) Change the folder path that I want to go (for eg, S:\SANDRA\)
05) Type in the syntax NET FILE.
- Problem: It says "There are not entries in the list."
06) I also tried to type the syntax NET FILE SANDRA.xls
- Problem: It says "NET FILE [id [/CLOSE]].
07) I also tried to type NET FILE SANDRA.xls /CLOSE.
- Problem: It says "NET FILE [id [/CLOSE]].

Pls advise where have I gone wrong and what to do next?

Regards
Sandra Poh
Post by dwalsh
Thanks so much for your help, I got it to work.
Post by Jerold Schulman
Post by dwalsh
Thanks, but I am confused. Should the syntax be netfile/"the name of the
file"?
Post by Jerold Schulman
Post by dwalsh
I am running an internal app is visual studio and sometimes a file gets
locked by the processes even though it is no longer in use. Is there a
utility out there to unlock a locked file so that another processes can take
control of it?
Open a CMD.EXE windows and type
net file /?
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
no.
Type net file and get a list of open files, with teir ID
Then
net file ID /CLOSE
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
Loading...