I tried the new DismountVolume() and saw that the script finished too quick, so I did some testing.
Some examples from the logfiles:
Without using Dismountvolume()
20:37:21 Analyzing the boot optimization file
20:37:21 Loading file into memory: C:\WINXP\Prefetch\Layout.ini
20:37:22 Cannot find item at LCN=786432
20:37:22 The file has zero size: E:\
20:37:22 Cannot open 'E:\DATA\': [2] Det går inte att hitta filen.
20:37:22 Cannot open 'E:\DATA\BORLAND STUDIO PROJECTS\': [3] Det går inte att hitta sökvägen.
"Det går inte att hitta filen." = Can't find file.
"Det går inte att hitta sökvägen." = Can't find path
20:37:26 Starting to sort by Name.
20:37:26 Creating sorted list.
20:37:26 Finished creating sorted list.
20:37:26 Placing items in sorted order.
20:37:26 I want to place 'E:\$MFT' at Lcn=2295, 32476 clusters.
20:37:26 Testing if 'E:\$MFT' is already at LCN=2295
20:37:26 Skipping item's data at LCN=2295, LCN is now 34771
20:37:26 Yes, it is exactly there.
20:37:26 Finished sorting by Name.
When using Dismountvolume()
20:36:47 Analyzing the boot optimization file
20:36:47 Loading file into memory: C:\WINXP\Prefetch\Layout.ini
20:36:47 Cannot open 'E:\$MFT': [5] Åtkomst nekad.
20:36:47 Cannot open 'E:\': [5] Åtkomst nekad.
20:36:47 Cannot open 'E:\DATA\': [5] Åtkomst nekad.
20:36:47 Cannot open 'E:\DATA\BORLAND STUDIO PROJECTS\': [5] Åtkomst nekad.
"Åtkomst nekad." = Access denied
20:36:50 Starting to sort by Name.
20:36:50 Creating sorted list.
20:36:50 Finished creating sorted list.
20:36:50 Placing items in sorted order.
20:36:50 I want to place 'E:\$MFT' at Lcn=0, 32476 clusters.
20:36:50 Testing if 'E:\$MFT' is already at LCN=0
20:36:50 Skipping unmovable data at LCN=0, LCN is now 2
20:36:50 Item at LCN=2 is movable.
20:36:50 No, it is at LCN=2295.
20:36:50 ERROR: could not get volume bitmap: [21] Enheten är inte klar.
20:36:50 ERROR: could not get volume bitmap: [21] Enheten är inte klar.
20:36:50 ERROR: could not get volume bitmap: [21] Enheten är inte klar.
20:36:50 No gaps available, cannot continue with sorted placement.
20:36:50 Finished sorting by Name.
"Enheten är inte klar." = Device not ready.
I don't want to attach the full logs in the forum, but if they are needed they are available.
jonib