Re: write permission
----- Original Message -----
From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Sun, 17 Nov 2002 10:21:37 +0100
Subject: Re: write permission
> That's under Unix (including Unix-like systems like Linux or cygwin). Under
> DOS or Windows it's not so clean: Try to create a workfile (a file for which
> the OS gives you a name which is guaranteed not to exist yet). If the
> open-output fails, it means you cannot write to the current directory
> (either read-only, or no free entries and disk full).
Hmmm, for Win2K (NT as well I believe), this works, too, which would actually avoid from creating a temp file:
dir /AR|findstr /R /C:"\ \.$"
Sign-up for your own FREE Personalized E-mail at Mail.com
One click access to the Top Search Engines