According to

http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/filei=
o/fs/n
aming_a_file.asp

com_, prn, nul, and ... files normally can't exit as these names are
reserved.

But windows api only test if file name 'begins' with them, not 'is =
exactly'
equal to them (probably a missing test in the code.. not resolved since =
dos
....). So you normally can't create any file begins with them in name

There is a workaround : Use the 'UNC' convention for local files :
\\?\<completepath>\<filename>

so

del \\?\C:\Mydir\com1.fr

will work !!

Note that you cannot use relative paths with this method because unc =
starts
with a \\?\ (so start at top of filesystem, as with network unc).

And FINALLY, with unc paths you CAN create/modify/delete files ending =
with
period !!!

So if you have a file c:\temp\test.fr. you can delete it with del
\\?\c:\temp\test.fr. !!!

Xmail use 'unc' convention on win32 to create/modify/delete files ...


Francis






> -----Message d'origine-----
> De : Rich - AutoTraker Inc. [mailto:[EMAIL PROTECTED]
> Envoy=E9 : mercredi 8 juin 2005 16:54
> =C0 : xmail@xmailserver.org
> Objet : [xmail] Re: DNS entry files
>=20
>=20
> > Here we can't remove files like:
> > com4.cz
> > con.com
> > com1.fr
> > prn.pl
> > com5.de
> > com4.com
> > com5.biz
> >
>=20
> Those look like normal file names to me. What is wrong with=20
> them? Are you=20
> sure they also don't have a trailing period?
> Are you on Linux and "com","con"and "prn" are reserved words?
>=20
> Rich...
> www.autotraker.com
> AutoTraker Inc.
>=20
>=20
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>=20
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to