You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dir -force -hidden c:\pagefile.sys returns an error #2144
Jeffrey Snover (@jpsnover) I updated the issue text and wrapped the console log in the code snippet block. This keeps github from applying markdown formatting rules (i.e. turning
+ dir -Force -Hidden c:\pagefile.sys
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joey Aiello (@joeyaiello), Jeffrey Snover (@jpsnover) : The scenario only repro's if the path for .sys file is provided.
When the path is .sys file, underlying native api 'GetFileAttributes' returns 'INVALID_FILE_ATTRIBUTES' (failure) with error code 32 (ERROR_SHARING_VIOLATION = The process cannot access the file because it is being used by another process.) .
The solution is to use 'FindFirstFile(path)' in case the error code is 32. If it does not return INVALID_HANDLE_VALUE (-1) , the file exists.
Activity
vors commentedon Aug 31, 2016
Jeffrey Snover (@jpsnover) I updated the issue text and wrapped the console log in the code snippet block. This keeps github from applying markdown formatting rules (i.e. turning
into a list:
Please, use this technique and other markdown formatting to format issues.
joeyaiello commentedon Sep 6, 2016
Also seeing this on Anniversary Update:
Interestingly,
Get-ChildItem -Forceshows the pagefile until I get specific.Three .sys files here:
But then this happens:
charub commentedon Sep 13, 2016
Joey Aiello (@joeyaiello), Jeffrey Snover (@jpsnover) : The scenario only repro's if the path for .sys file is provided.
When the path is .sys file, underlying native api 'GetFileAttributes' returns 'INVALID_FILE_ATTRIBUTES' (failure) with error code 32 (ERROR_SHARING_VIOLATION = The process cannot access the file because it is being used by another process.) .
The solution is to use 'FindFirstFile(path)' in case the error code is 32. If it does not return INVALID_HANDLE_VALUE (-1) , the file exists.
daxian-dbw commentedon Sep 27, 2016
Closed via #2273