Re: Distinguishing between a directory and a file
- From: "Dean Wells [MVP]" <dwells@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Mar 2006 11:29:42 -0500
With Jerold's assistance, I found the recommendation ... it's an
interesting justification. With that in mind, the use of short-names as
a solution to the "nul" directory detection method would be troublesome
at best ... thanks for the info.
--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l
Stefan Kanthak wrote:
"Dean Wells [MVP]" <dwells@xxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
The following (albeit a more thorough derivative)
is functioning adequately for me in a number of scripts executing
~daily on Windows 2000, XP and Vista -
if exist %~s1\nul (echo yes) else (echo no)
This is not to say that caveats don't exist,
NTFS8dot3NameCreation for example?
This setting is recommended by MSFT in the W2K AD setup guidelines.
I'm using it on all my machines since NT4, and since I disabled it
in SETUPREG.HIV no single file/directory name has a "short" entry.
*I*'d never recommend a solution that doesn't work in general, at
least without placing a big CAVEAT anywhere around it, if I know
about it shortcomings.
Stefan
.
- Follow-Ups:
- Re: Distinguishing between a directory and a file
- From: Stefan Kanthak
- Re: Distinguishing between a directory and a file
- References:
- Re: Distinguishing between a directory and a file
- From: Dean Wells [MVP]
- Re: Distinguishing between a directory and a file
- From: Timo Salmi
- Re: Distinguishing between a directory and a file
- From: Joe Richards [MVP]
- Re: Distinguishing between a directory and a file
- From: Timo Salmi
- Re: Distinguishing between a directory and a file
- From: Joe Richards [MVP]
- Re: Distinguishing between a directory and a file
- From: Timo Salmi
- Re: Distinguishing between a directory and a file
- From: Joe Richards [MVP]
- Re: Distinguishing between a directory and a file
- From: Timo Salmi
- Re: Distinguishing between a directory and a file
- From: Dean Wells [MVP]
- Re: Distinguishing between a directory and a file
- From: Stefan Kanthak
- Re: Distinguishing between a directory and a file
- Prev by Date: Re: Re: Distinguishing between a directory and a file
- Next by Date: Re: Member Server List
- Previous by thread: Re: Re: Distinguishing between a directory and a file
- Next by thread: Re: Distinguishing between a directory and a file
- Index(es):
Relevant Pages
|