473,503 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileSystem bug ?

I have found a strange behavior

I use FileInfo class to retreive LastWriteTime property of some file
The file is just a JPEG image. When the image is editted by photosho
(actually the image is rotated), the LastWriteTime property
shows correct modification date. However, when I rotate the image
with the built-in WinXP Image Viever, the property does not reflec
the recent image change: it shows previous {image changing date}

I checked Image properties using windows explorer, and it show
exactly the same what FileInfo class does. If image is modified (rotated
by winXP built-In Image Viewer, the "Modified" property does not
reflect the recent image change.

The only thing I noticed that changes are file attributes
After rotation with WinXP Image Viewer, the "archive" attribute is removed

So, is it a bug or XP Image viewer modifies files
in a way that bypasses FileSystem .. or what ??

The most important thing I would like to know is actual file modification
date (date of last modification), regardless of what program had been
used to modify the file. Is it somehow possible

Thanks In Advanc
Michał Januszczy

Jul 21 '05 #1
4 1519
Works for me. Are you sure you save the image when done?

Willy.

"Michal Januszczyk" <an*******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I have found a strange behavior:

I use FileInfo class to retreive LastWriteTime property of some file.
The file is just a JPEG image. When the image is editted by photoshop
(actually the image is rotated), the LastWriteTime property
shows correct modification date. However, when I rotate the image
with the built-in WinXP Image Viever, the property does not reflect
the recent image change: it shows previous {image changing date}.

I checked Image properties using windows explorer, and it shows
exactly the same what FileInfo class does. If image is modified (rotated)
by winXP built-In Image Viewer, the "Modified" property does not
reflect the recent image change.

The only thing I noticed that changes are file attributes.
After rotation with WinXP Image Viewer, the "archive" attribute is
removed.
So, is it a bug or XP Image viewer modifies files
in a way that bypasses FileSystem .. or what ???
The most important thing I would like to know is actual file modification
date (date of last modification), regardless of what program had been
used to modify the file. Is it somehow possible ?

Thanks In Advance
Michal Januszczyk

Jul 21 '05 #2
Works for me. Are you sure you save the image when done?

Willy.

"Michal Januszczyk" <an*******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I have found a strange behavior:

I use FileInfo class to retreive LastWriteTime property of some file.
The file is just a JPEG image. When the image is editted by photoshop
(actually the image is rotated), the LastWriteTime property
shows correct modification date. However, when I rotate the image
with the built-in WinXP Image Viever, the property does not reflect
the recent image change: it shows previous {image changing date}.

I checked Image properties using windows explorer, and it shows
exactly the same what FileInfo class does. If image is modified (rotated)
by winXP built-In Image Viewer, the "Modified" property does not
reflect the recent image change.

The only thing I noticed that changes are file attributes.
After rotation with WinXP Image Viewer, the "archive" attribute is
removed.
So, is it a bug or XP Image viewer modifies files
in a way that bypasses FileSystem .. or what ???
The most important thing I would like to know is actual file modification
date (date of last modification), regardless of what program had been
used to modify the file. Is it somehow possible ?

Thanks In Advance
Michal Januszczyk

Jul 21 '05 #3

----- Willy Denoyette [MVP] wrote: ----

Works for me. Are you sure you save the image when done

Yes I'm sure. The image is saved automatically when it is rotated. You can even
find that the image size changes.

Once again: I view JPEG file with "Image And Fax Viewer" (ships with WinXP), rotate
the the file (just after the operation You can see that image size changed).
Then I right click the image, see properties and the file "Modified date" shows some
old date (date that the file was modified by some other program).

If You had hanged the file by some other software (e.g. photoshop), and just
after that You used Windows Image Viewer to do the same, the modified
date shows the right date because the {file changing} by photoshop and by the
Image Viever took place the same day (the modified date does not show exac
time, just day).

So You might want to rotate the file with WinXP Image Viewer first, and
see file properties.

I checked this behavior on three diffrent machines, and all the three behave the same
(all running WinXP Professional)

Thank
Michał Januszczyk
Jul 21 '05 #4

----- Willy Denoyette [MVP] wrote: ----

Works for me. Are you sure you save the image when done

Yes I'm sure. The image is saved automatically when it is rotated. You can even
find that the image size changes.

Once again: I view JPEG file with "Image And Fax Viewer" (ships with WinXP), rotate
the the file (just after the operation You can see that image size changed).
Then I right click the image, see properties and the file "Modified date" shows some
old date (date that the file was modified by some other program).

If You had hanged the file by some other software (e.g. photoshop), and just
after that You used Windows Image Viewer to do the same, the modified
date shows the right date because the {file changing} by photoshop and by the
Image Viever took place the same day (the modified date does not show exac
time, just day).

So You might want to rotate the file with WinXP Image Viewer first, and
see file properties.

I checked this behavior on three diffrent machines, and all the three behave the same
(all running WinXP Professional)

Thank
Michał Januszczyk
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5791
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
1
2557
by: Francois Fernandes | last post by:
Hi list! I would like to write a linux c++ program which mounts it's own filesystem within a file, that is located in the Linux filesystem. Now I don't know how to start that. I need basic help...
3
2259
by: Michael | last post by:
Is this the correct place to ask about Boost libs? If it is.............. #include <boost/filesystem/path.hpp> #include <boost/filesystem/operations.hpp> using namespace boost; using...
1
1870
by: Lucas Fletcher | last post by:
Hi All, I've searched the web for an article explaining the many tradeoffs between storing your XML in a database vs the filesystem but I haven't really found anything of note. This is the...
4
2528
by: Christian Blackburn | last post by:
Hi Gang, I've created a text-based file format. Once I've generated the text to save the file is as it should be in the debug window. However once I write it to a file a " is added to the...
2
2686
by: Jeff Davis | last post by:
I have virtual hosted users on a server and some of them have a postgresql database. I'm concerned about the outside possibility that a user could create an infinite loop and fill up the partition...
16
8191
by: Michal Hlavac | last post by:
Hello, I am working on web portal. There are some ads. We have about 200 000 ads. Every ad have own directory called ID, where is 5 subdirectories with various sizes of 5 images. Filesystem...
5
3410
by: GaryE | last post by:
Hello: I am having trouble linking a couple of files using the boost::filesystem. I am using MSVC 6.0. Here is an abbreviated version of my problem: foo.h: #ifndef __FOO_ #define...
2
4567
by: Javier | last post by:
Hello all, I'm trying to remove a hidden file (in UNIX) using the Boost::filesystem library. This is what I have: #include <boost/filesystem/operations.hpp> namespace...
1
3015
by: Thomas W | last post by:
I want to create a virtual filesystem based on a relational database. It might run as a server on a different machine, but it has to be available like a normal filesystem, either shared using...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.