Renaming a share.

  • Thread starter Thread starter Jaco
  • Start date Start date
J

Jaco

Hi,

I think I've found an interesting bug under the windows 2000 sharing
system.

Here's what's happening:

I am using a VB application to rename a folder under a share as
follows:

Name "\\dell2ksrv\storage\Images\WORKING_DISK\IMAGES" AS _
"\\dell2ksrv\storage\Images\WORKING_DISK\IMAGES_00001"

This fails with a path access 75 error.

Now I've halted the application just before it attempts the rename and
tried the same using explorer it also fails, however if I manually
rename:

"\\dell2ksrv\storage\Images\WORKING_DISK\" to
"\\dell2ksrv\storage\Images\WORKING_DISK1\"

it succeeds and I can rename the original subfolder, if I rename both
subfolders (IMAGES & WORKING_DISK) back to the original name I am
again unable to rename the IMAGES folder to IMAGES_00001).

Extra info:

Using the very useful Handles.exe it reports the following in use:
System pid: 8 NT AUTHORITY\SYSTEM
b4: File C:\PAGEFILE.SYS
28c: File C:\Storage
2e4: File C:\Storage\Images\WORKING_DISK\IMAGES\IMGDISK
2e8: File C:\Storage\Images\WORKING_DISK
(This is the only section showing the IMAGES folder in use).

I have carefully gone through my application to ensure any handles
opened on the
IMAGES folder are closed.

Note there is no problem with the application on XP/NT4/98 etc. So
I'm very confused!!

Please help me!!

Thanks in advance.

-Jase.
 
Found a solution to this problem.

I had used a DIR in a nested utility function that kept an open handle
in the W2K environment. Doing a DIR on another directory freed the
one I wanted to rename.

Note this only seems to be a problem under windows 2000.

Hope this may help another poor soul!
 
Back
Top