Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows 64 Bit > Windows 7 dual versions of same file simultaneously present

Reply
Thread Tools Display Modes

Windows 7 dual versions of same file simultaneously present

 
 
miktro
Guest
Posts: n/a

 
      08-24-2010
I am running Windows 7 Ultimate 64bit.

I have a situation in which two versions of a file are simultaneously
present and available to programs.

Thre is a text file in a program directory from which error message are
read.

When I run the program I get an error message "Error 1234".
When I edit the message file in a text editor this line does not exist.
There is a new line present "New Error mesage 1234" - as there is suppose
to be as I have just copied across the latest updated files.

However if I edit the file using a cygwin command (e.g. 'ed' then the new
lines are not present but the oldones are!

Thsi duality seems to hold true for many commands.
Regular Windows programs see the new file contents,
cygwin and other 'non-regular' windows programs see the old contents.

It also holds true after a soft restart, hard reboot and after turning
off write caching on all discs.

This also goes even deeper.
If I delete the file in Windows Explorer then all windows program compain
tha t the file no longer exists
but all cygwin programs carry on happily procdessing the old version.

If I delete this old version using the cygwin comand 'rm' then cygwinalso
compains the file does not exist.
Adn if I now copy across a new version then all sets of programs proces
the same, new version.

How is this dual presence of a file possible?

 
Reply With Quote
 
 
 
 
Steve Foster
Guest
Posts: n/a

 
      08-24-2010
miktro wrote:

> I am running Windows 7 Ultimate 64bit.
>
> I have a situation in which two versions of a file are simultaneously
> present and available to programs.
>
> Thre is a text file in a program directory from which error message
> are read.
>
> When I run the program I get an error message "Error 1234".
> When I edit the message file in a text editor this line does not
> exist. There is a new line present "New Error mesage 1234" - as
> there is suppose to be as I have just copied across the latest
> updated files.
>
> However if I edit the file using a cygwin command (e.g. 'ed' then the
> new lines are not present but the oldones are!
>
> Thsi duality seems to hold true for many commands.
> Regular Windows programs see the new file contents,
> cygwin and other 'non-regular' windows programs see the old contents.
>
> It also holds true after a soft restart, hard reboot and after
> turning off write caching on all discs.
>
> This also goes even deeper.
> If I delete the file in Windows Explorer then all windows program
> compain tha t the file no longer exists
> but all cygwin programs carry on happily procdessing the old version.
>
> If I delete this old version using the cygwin comand 'rm' then
> cygwinalso compains the file does not exist.
> Adn if I now copy across a new version then all sets of programs
> proces the same, new version.
>
> How is this dual presence of a file possible?


Because Windows protects certain locations from users. The most notable
example being Program Files.

It's called File Virtualization.

The net effect is that attempts by accounts with inadequate privileges
results in files being created/edited in the users own profile space
(rather than wherever the user/application thinks the file is), and the
applications that made the attempts think they were successful. The
original file is left intact.

--
Steve Foster
For SSL Certificates, Domains, etc, visit.:
https://netshop.virtual-isp.net
 
Reply With Quote
 
someone@somewhere.com
Guest
Posts: n/a

 
      08-25-2010
"Steve Foster" <> wrote in
news::

> miktro wrote:
>
>>
>> This also goes even deeper.
>> If I delete the file in Windows Explorer then all windows program
>> compain tha t the file no longer exists
>> but all cygwin programs carry on happily procdessing the old version.
>>
>> If I delete this old version using the cygwin comand 'rm' then
>> cygwinalso compains the file does not exist.
>> Adn if I now copy across a new version then all sets of programs
>> proces the same, new version.
>>
>> How is this dual presence of a file possible?

>
> Because Windows protects certain locations from users. The most notable
> example being Program Files.
>
> It's called File Virtualization.
>
> The net effect is that attempts by accounts with inadequate privileges
> results in files being created/edited in the users own profile space
> (rather than wherever the user/application thinks the file is), and the
> applications that made the attempts think they were successful. The
> original file is left intact.
>


Thanks Steve - that sounds like one of the scenarios I suspected.

My problem now is - how do I tell when this has happened - so I can check
whether I am using the file I should be using.
I will need a search condition or test program to flag files where
virtualisation has occurred.

Any suggestions would be appreciated.
 
Reply With Quote
 
Steve Foster
Guest
Posts: n/a

 
      08-25-2010
wrote:

> "Steve Foster" <> wrote in
> news::
>
> > miktro wrote:
> >
> >>
> >> This also goes even deeper.
> >> If I delete the file in Windows Explorer then all windows program
> >> compain tha t the file no longer exists
> >> but all cygwin programs carry on happily procdessing the old

> version. >>
> >> If I delete this old version using the cygwin comand 'rm' then
> >> cygwinalso compains the file does not exist.
> >> Adn if I now copy across a new version then all sets of programs
> >> proces the same, new version.
> >>
> >> How is this dual presence of a file possible?

> >
> > Because Windows protects certain locations from users. The most
> > notable example being Program Files.
> >
> > It's called File Virtualization.
> >
> > The net effect is that attempts by accounts with inadequate
> > privileges results in files being created/edited in the users own
> > profile space (rather than wherever the user/application thinks the
> > file is), and the applications that made the attempts think they
> > were successful. The original file is left intact.
> >

>
> Thanks Steve - that sounds like one of the scenarios I suspected.
>
> My problem now is - how do I tell when this has happened - so I can
> check whether I am using the file I should be using.
> I will need a search condition or test program to flag files where
> virtualisation has occurred.
>
> Any suggestions would be appreciated.


http://support.microsoft.com/kb/927387

is a useful KB article that explains some of this, and has links to
further information.

--
Steve Foster
For SSL Certificates, Domains, etc, visit.:
https://netshop.virtual-isp.net
 
Reply With Quote
 
someone@somewhere.com
Guest
Posts: n/a

 
      08-25-2010
"Steve Foster" <> wrote in
news::

>> My problem now is - how do I tell when this has happened - so I can
>> check whether I am using the file I should be using.
>> I will need a search condition or test program to flag files where
>> virtualisation has occurred.
>>
>> Any suggestions would be appreciated.

>
> http://support.microsoft.com/kb/927387
>
> is a useful KB article that explains some of this, and has links to
> further information.
>


Thanks again - a very useful article.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Update Error Code: 80070005 Joe Davis Windows Update 33 05-05-2010 08:03 AM
Windows Update keeps coming back with updates I already installed. JustWantItToWork Windows Update 5 03-01-2010 04:50 PM
I also have an error 646 in Windows update. Please help. Jose Windows Update 12 01-09-2010 01:00 PM
Leftover folders after Microsoft Update mme000 \(add @yahoo.it to my nick\) Windows Update 21 12-26-2009 10:11 PM
HELP sfc /scannow William Beard Windows Vista Performance 17 05-11-2007 03:28 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59