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 1531
Works for me. Are you sure you save the image when done?
Willy.
"Michal Januszczyk" <an*******@disc ussions.microso ft.com> wrote in message
news:9D******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.com> wrote in message
news:9D******** *************** ***********@mic rosoft.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 held in memory and therefore fast,
without risk of damaging real files, and with none of the
messiness of leftover files after testing.
Googling...
|
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 on how to write my
tool that I'm abel to create a File and "formating" this file, so that I
can place "files" in my filesystem in my file. Does...
|
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 namespace boost::filesystem;
|
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 little I've come up with:
FileSystem Pros:
|
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 beginning and a ", to the end. Can somebody
explain why? I'm using VB2003.
Thanks in advance for any help,
Christian Blackburn
Here's my code:...
| |
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 on which
everyone's database resides.
Anyway, it occured to me that I could create a special file for each
database user of limited size, and...
|
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 is too slow. But I don't know, if I store these images into
postgres, performace will grow.
Second question is, what kind of hardware I need for...
|
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 __FOO_
#include "boost/filesystem.hpp"
|
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 fs=boost::filesystem;
|
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 SAMBA or
windows filesharing or thru something else like WebDav.
The idea is that I scan a local filesystem and then create relations
between those...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |