[DUG] Renaming file in use
Sean Cross
sean at picsprint.com
Fri Dec 2 22:27:05 NZDT 2005
AFAIAA, it is like that on all NT descendants. It is done deliberately
so that you can update files without having to kick users off. I use it
to update an application on a citric server without having to kick off
50 users.
Regards
Sean
---------------------------------------
Sean Cross
mailto:sean at intuitex.com
Pics Print - The photo printing solution for Windows.
http://www.picsprint.com
Rental Property Manager: Rental management made easy
http://www.Intuitex.com
> -----Original Message-----
> From: delphi-bounces at ns3.123.co.nz
> [mailto:delphi-bounces at ns3.123.co.nz] On Behalf Of Rohit Gupta
> Sent: 2 December 2005 6:29 p.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Renaming file in use
>
>
> Sean,
>
> I thought I would try this out and you are right, another crappo from
> Microsoft. Not only can you rename the file, it also renames
> the path
> in the shortcut that launched it. Another way a virus can
> get in. And
> you can even rename the dll thats in use. Further to that if
> you rename
> a system dll, it silently copies it from the backup. All test on
> win2k. Will all this really work the same way on XP, 2kserver,
> 2k3server, Terminal Services, a pc using Domain Server and
> Longhorn ????
>
> I would still maintain that its is idotic to rely on this mechanism.
>
> Any primitive virus protection thingy should foil this. But
> does it ?
> :-( Zonealarm certainly did not complain.
>
> I despair. Its worth the effort to write a virus to teach MS
> a lesson.
>
> Just for the record OS2 had the same weakness and I created a
> fuss about
> it in public forums then. :-( But then I forget... windows has the
> basis as OS2.
>
> Sean Cross - CRM wrote:
>
> >RenameFile should work on open files for Windows NT and up.
> >
> >Regards
> >
> >Sean
> >-------------------------
> >Sean Cross
> >Systems Development Manager
> >CRM
> >PO Box 230
> >Napier
> >DDI: 06 834 0362
> >Mobile: 021 270 3466
> >Email: sean.cross at crm.co.nz
> >
> >Offices located in Auckland, Napier, Wellington & Christchurch
> >
> >...
> >
> >
> >>Offtopic Nostalgic thought (sigh) Unix handles renaming
> >>files in use much better. It allows it no problem. Any
> >>files with the old version open still access the old data
> >>file which is preserved until closed. When reopened it gets
> >>the new version. Very transparent. Windows just doesn't
> >>allow it, even if the file is only open read-only. If I
> >>remember VMS did something even smarter with maintaining
> >>multiple versions of files as part of the filesystem.
> >>
> >>The scheme I use is for programs.
> >>
> >>John
> >>
> >>
> >>
> >>
> >
> >_______________________________________________
> >Delphi mailing list
> >Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
>
More information about the Delphi
mailing list