<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi David Gurvich,</DIV>
<DIV>Thanks for responding. Working with copies is what I do. Saving I do
by renaming: (rename-file-or-directory result-path original-path #t),
which seems rather atomic to me. If the rename fails I have a backup
and communicate this one to the user. There is a backup of the
original file too, of course. Nevertheless, in MzScheme I cannot open a file
that is open in MsWord, while with MsWord I can open a file while it open
in an MzScheme program. MsWord realy locks its open files from being
write-accessed by other applications. This would be rather convenient. But I
cannot figure out how MsWord does this locking.</DIV>
<DIV>Greetings, Jos Koot </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=david.gurvich@verizon.net
href="mailto:david.gurvich@verizon.net">David Gurvich</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=plt-scheme@list.cs.brown.edu
href="mailto:plt-scheme@list.cs.brown.edu">plt-scheme@list.cs.brown.edu</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 19, 2006 6:43
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [plt-scheme] file lock</DIV>
<DIV><BR></DIV>Different file access modes are determined by the underlying
OS. MSWord <BR>actually works on copies of the file. Emacs and vim
both work on copies of <BR>the file and save different versions, with names
like file~ or #file#, if <BR>multiple instances are being used or the program
halts before saving.<BR>On Tuesday 19 December 2006 10:24, jos koot
wrote:<BR>> Hi,<BR>> Is it possible to have PLT-scheme lock a file such
as to prevent<BR>> simultaneous access from different stand allone
programs? I looked around<BR>> in the docs, but could not find any related
topic. I am sure it is possible<BR>> somehow, for MSWord can. Greetings,
Jos Koot<BR>><BR>> I use version full-369.1-bin-i386-win32.exe on
Winsows XP home.<BR><BR>-- <BR>*--*--*--*--*--*--*--*--*--*--*--*<BR>KMail on
Gentoo/PPC<BR>_________________________________________________<BR> For
list-related administrative tasks:<BR> <A
href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</A><BR></BLOCKQUOTE></BODY></HTML>