A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

fsutil file in use??



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old April 3rd 20, 10:57 PM posted to alt.comp.os.windows-10
T
external usenet poster
 
Posts: 4,600
Default fsutil file in use??

Hi All,

Anyone know of a workaround for this?

fsutil.exe usn readdata c:\pagefile.sys

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

Many thanks,
-T
Ads
  #2  
Old April 4th 20, 03:30 AM posted to alt.comp.os.windows-10
n/a
external usenet poster
 
Posts: 75
Default fsutil file in use??

"T" wrote in message ...

Hi All,

Anyone know of a workaround for this?

fsutil.exe usn readdata c:\pagefile.sys

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

Many thanks,
-T

T

Looks like the pagefile is being locked out. Could be a host of things and
rather go back and forth on when does it occur, what makes it occur, etc.
Cut to the bottom line and delete the pagefile temporarily. Go to System
Properties Advanced and at the middle there is a virtual memory setting
(pagefile). Click on "Change" and in the next window select the main drive
(C and then set the radio button "No paging file".

Reboot the repeat the above but this time click the radio button for "System
managed size" and reboot.

Now see if you get the same error. If so, look for some background service
or other program (like Chrome) using the virtual memory and hogging it. How
much memory on the system involved?
--

Bob S

  #3  
Old April 4th 20, 05:42 AM posted to alt.comp.os.windows-10
T
external usenet poster
 
Posts: 4,600
Default fsutil file in use??

On 2020-04-03 19:30, n/a wrote:
"T"Â* wrote in message ...

Hi All,

Anyone know of a workaround for this?

fsutil.exe usn readdata c:\pagefile.sys

Error:Â* The process cannot access the file
because it is being used by another process.

Many thanks,
-T

T

Looks like the pagefile is being locked out.Â* Could be a host of things
and rather go back and forth on when does it occur, what makes it occur,
etc. Cut to the bottom line and delete the pagefile temporarily. Go to
System Properties Advanced and at the middle there is a virtual memory
setting (pagefile). Click on "Change" and in the next window select the
main drive (C and then set the radio button "No paging file".

Reboot the repeat the above but this time click the radio button for
"System managed size" and reboot.

Now see if you get the same error.Â* If so, look for some background
service or other program (like Chrome) using the virtual memory and
hogging it.Â* How much memory on the system involved?


Gee Wiz! I am only after the file attributes.
Attrib works, but gives a lot less information

attrib C:\pagefile.sys
A SH C:\pagefile.sys

  #4  
Old April 5th 20, 03:42 AM posted to alt.comp.os.windows-10
T
external usenet poster
 
Posts: 4,600
Default fsutil file in use??

On 2020-04-03 14:57, T wrote:
Hi All,

Anyone know of a workaround for this?

fsutil.exe usn readdata c:\pagefile.sys

Error:Â* The process cannot access the file
because it is being used by another process.

Many thanks,
-T


I put a test into the string I got back from
fsutil. If there is a file lock problem, I
annotate it and send attrib's output instead.

I have to run attrib anyway as Raku's file exists
routine does not find hidden files and I have the
result kicking around for reuse anyway. I filed
a bug on it with Raku.


  #5  
Old April 5th 20, 11:10 PM posted to alt.comp.os.windows-10
n/a
external usenet poster
 
Posts: 75
Default fsutil file in use??

"T" wrote in message ...

Hi All,
Anyone know of a workaround for this?
fsutil.exe usn readdata c:\pagefile.sys
Error: The process cannot access the file
because it is being used by another process.

Many thanks,
-T

T

You asked about the above and then you reply about attributes and Raku....?
--

Bob S
  #6  
Old April 6th 20, 04:40 AM posted to alt.comp.os.windows-10
T
external usenet poster
 
Posts: 4,600
Default fsutil file in use??

On 2020-04-05 15:10, n/a wrote:
"T"Â* wrote in message ...

Hi All,
Anyone know of a workaround for this?
fsutil.exe usn readdata c:\pagefile.sys
Error:Â* The process cannot access the file
because it is being used by another process.

Many thanks,
-T

T

You asked about the above and then you reply about attributes and Raku....?


A little history.

I wrote a Raku program called FileAttributes.pl6. It
gives you full attributes of a file or directory. It
can be run from the command line or from the context menu
of Windows Explorer. It sets up the registry for you
if you call the "--SetReg" command line switch.

The heart of it is its call to

fsutil.exe usn readdata filename/directoryname

c:\pagefile.sys give me a bad time because fsutil finds
a file lock

So I fall back on call to the far less informative
attrib.exe.

I have to call attrib anyway because of a bug in
Raku's file IO exists routine that misses hidden
files, so I have the information kicking around.

Here is what both situations look like:

https://ibb.co/k1fpSgX

What I am after is a way to get fsutil to not burp
on files with locks on them.

Sorry for the confusion.







 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 07:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.