Loading ...
Sorry, an error occurred while loading the content.
 

Re: write permission

Expand Messages
  • Jing Xue
    ... From: Antoine J. Mechelynck Date: Sun, 17 Nov 2002 10:21:37 +0100 To: Subject: Re: write permission ...
    Message 1 of 4 , Dec 3, 2002
      ----- Original Message -----
      From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
      Date: Sun, 17 Nov 2002 10:21:37 +0100
      To: <vim@...>
      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:"\ \.$"

      HTH
      -J.X.

      --
      _______________________________________________
      Sign-up for your own FREE Personalized E-mail at Mail.com
      http://www.mail.com/?sr=signup

      One click access to the Top Search Engines
      http://www.exactsearchbar.com/mailcom
    Your message has been successfully submitted and would be delivered to recipients shortly.