S
Sudeep George
Hi
I have implemented a perl script to 'touch' all files in a directory
using utime().
The implementation is working fine, but due to limitations of utime()
on Windows, utime() will not modify the attributes of a file if it is
opened or read-only.
I am using Active State Perl v5.8.4 on a Windows 2000 machine.
There is an existing perl module Win32API::File::Time which addresses
this specific problem. But this perl module is not installed by
default[atleast by Active State]. I would like the people using this
script, to avoid installing a perl module inorder to run the same.
I used Win32::File [GetAttribute , SetAttribute] to handle the
read-only issue. This is working fine.
Any ideas how to handle the case when the file being 'touch'ed is
opened already?
TIA,
Sudeep George.
I have implemented a perl script to 'touch' all files in a directory
using utime().
The implementation is working fine, but due to limitations of utime()
on Windows, utime() will not modify the attributes of a file if it is
opened or read-only.
I am using Active State Perl v5.8.4 on a Windows 2000 machine.
There is an existing perl module Win32API::File::Time which addresses
this specific problem. But this perl module is not installed by
default[atleast by Active State]. I would like the people using this
script, to avoid installing a perl module inorder to run the same.
I used Win32::File [GetAttribute , SetAttribute] to handle the
read-only issue. This is working fine.
Any ideas how to handle the case when the file being 'touch'ed is
opened already?
TIA,
Sudeep George.