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 4 1514
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
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
----- 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
----- 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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,...
| |