Page 2 of 2 <12
Topic Options
#116980 - 2006-01-14 01:58 PM Re: InUse() - Function to remove in use files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Can somebody test whether MOVE /P will work if the source file resides on a share, UNC, or external drive like USB Stick? My gut feeling is that MOVE /P is designed to work with only local files. This should then be added to the documentation.

My UDF that replaces in-use files is specifically coded to copy files to the local drive to take care of situations where the source file is remote.
_________________________
There are two types of vessels, submarines and targets.

Top
#116981 - 2006-01-16 11:34 AM Re: InUse() - Function to remove in use files
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Don't need to Test. The files will only be removed from local device. The MOVE and DEL /P happen right after the AUTOCHECK routine which does not have access to any remote drives at that point in time. Possibly USB as long as it loads from BIOS and not by Windows drivers.
 

Top
#116982 - 2006-01-16 12:07 PM Re: InUse() - Function to remove in use files
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Okay I think the DEL is not correctly implmented on Windows 9x with the WININIT.INI file.

An example entry after using is:
[rename]
C:\WINDOWS\Temporary Internet Files\Content.IE5\index.dat=NUL

This is wrong for 2 reasons.
1. Long file names are not supported at that point in time
2. The DestinationFileName (in this case NUL) comes first not last

Working example:
[rename]
NUL=C:\WINDOWS\TEMPOR~1\CONTENT.IE5\INDEX.DAT


Further explanation can be found in this KB

How To Move Files That Are Currently in Use
http://support.microsoft.com/kb/140570
 
Quote:


The syntax of the [rename] section is:
DestinationFileName=SourceFileName
 
DestinationFileName and SourceFileName must reside on the same volume and be short (8.3) file names because Wininit.ini is processed before the protected mode disk system is loaded, and long file names are only available when the protected mode disk system is running. Destination and source files specified in Wininit.ini with long file names are ignored.





 

Top
#116983 - 2006-01-16 12:34 PM Re: InUse() - Function to remove in use files
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well actually I take back item 1 on long file names. That was due to my own coding and does not need to be part of KiX executable (unless Ruud wants to add ERROR code to trap when a Long Filename is being used on Windows 9x - otherwise disregard the report of this as an error in the program)

The NUL though should be reversed to come first for deletes.
I did not test the MOVE functionality on Windows 9x but would assume it has same issue.


 

Top
Page 2 of 2 <12


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 628 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.053 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org