PC Review


Reply
Thread Tools Rate Thread

Clicking file:// link modifies source file properties

 
 
=?Utf-8?B?RnVncm9Cb3k=?=
Guest
Posts: n/a
 
      29th Mar 2006
On my corporate Intranet, I've put a simple hyperlink to an executable file
<a href='file://MyShare/MySetup.exe'>MySetup</a>
When a user clicks this link, they are of course presented with the file
download security prompts, but after they choose to run the program insead of
saving it, the modified date of MySetup.exe is CHANGED to the current date
and time. Of course this only happens if the user has write access to the
share and the file attribute is not read-only. This is definitely a browser
problem because if the user runs the exe on the share without using a
hyperlink, the file date remains unchanged.

Besides looking for workarounds like restricting access or using iframe
tags, I'd really like an explanation of this undesirable behaviour.
 
Reply With Quote
 
 
 
 
neil davis
Guest
Posts: n/a
 
      29th Mar 2006
Does this happen with a normal file shortcut if the users have write
access and the exe is not marked read-only?


On Wed, 29 Mar 2006 05:57:03 -0800, FugroBoy wrote:

> On my corporate Intranet, I've put a simple hyperlink to an executable file
> <a href='file://MyShare/MySetup.exe'>MySetup</a>
> When a user clicks this link, they are of course presented with the file
> download security prompts, but after they choose to run the program insead of
> saving it, the modified date of MySetup.exe is CHANGED to the current date
> and time. Of course this only happens if the user has write access to the
> share and the file attribute is not read-only. This is definitely a browser
> problem because if the user runs the exe on the share without using a
> hyperlink, the file date remains unchanged.
>
> Besides looking for workarounds like restricting access or using iframe
> tags, I'd really like an explanation of this undesirable behaviour.


 
Reply With Quote
 
=?Utf-8?B?RnVncm9Cb3k=?=
Guest
Posts: n/a
 
      29th Mar 2006
No, the date is not changed by any of these methods:
- Shortcut_to_MySetup.exe.lnk in Windows Explorer.
- Hyperlink to a BAT file which launches the EXE (the date of the bat gets
changed instead).
- Clicking the EXE file in an iframe.
- Browsing to \\MyShare with "Internet Explorer" and clicking the EXE file.


"neil davis" wrote:

> Does this happen with a normal file shortcut if the users have write
> access and the exe is not marked read-only?
>
>
> On Wed, 29 Mar 2006 05:57:03 -0800, FugroBoy wrote:
>
> > On my corporate Intranet, I've put a simple hyperlink to an executable file
> > <a href='file://MyShare/MySetup.exe'>MySetup</a>
> > When a user clicks this link, they are of course presented with the file
> > download security prompts, but after they choose to run the program insead of
> > saving it, the modified date of MySetup.exe is CHANGED to the current date
> > and time. Of course this only happens if the user has write access to the
> > share and the file attribute is not read-only. This is definitely a browser
> > problem because if the user runs the exe on the share without using a
> > hyperlink, the file date remains unchanged.
> >
> > Besides looking for workarounds like restricting access or using iframe
> > tags, I'd really like an explanation of this undesirable behaviour.

>
>

 
Reply With Quote
 
=?Utf-8?B?RnVncm9Cb3k=?=
Guest
Posts: n/a
 
      29th Mar 2006
Incidentally, if I choose to SAVE the target of the hyperlink instead of
RUNning it, the newly saved version of the file also gets the date changed to
the present time.

I should have added the important fact that the file share is on my IIS web
server, so the web server is able to pass credentials to the file (either
anonymous IUSR_WEBSERVER or integrated windows authentication).

If I move the files from \\WebServer\MyShare\ to \\AnotherServer\MyShare\
then the file dates remain unchanged, as expected. This is probably the
wisest solution anyway, but I'm still curious about Microsoft's intentions
with this "feature".




"FugroBoy" wrote:

> No, the date is not changed by any of these methods:
> - Shortcut_to_MySetup.exe.lnk in Windows Explorer.
> - Hyperlink to a BAT file which launches the EXE (the date of the bat gets
> changed instead).
> - Clicking the EXE file in an iframe.
> - Browsing to \\MyShare with "Internet Explorer" and clicking the EXE file.
>
>
> "neil davis" wrote:
>
> > Does this happen with a normal file shortcut if the users have write
> > access and the exe is not marked read-only?
> >
> >
> > On Wed, 29 Mar 2006 05:57:03 -0800, FugroBoy wrote:
> >
> > > On my corporate Intranet, I've put a simple hyperlink to an executable file
> > > <a href='file://MyShare/MySetup.exe'>MySetup</a>
> > > When a user clicks this link, they are of course presented with the file
> > > download security prompts, but after they choose to run the program insead of
> > > saving it, the modified date of MySetup.exe is CHANGED to the current date
> > > and time. Of course this only happens if the user has write access to the
> > > share and the file attribute is not read-only. This is definitely a browser
> > > problem because if the user runs the exe on the share without using a
> > > hyperlink, the file date remains unchanged.
> > >
> > > Besides looking for workarounds like restricting access or using iframe
> > > tags, I'd really like an explanation of this undesirable behaviour.

> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Setting to automatically open a source file by double clicking on Russ Microsoft Excel Setup 1 12th Jan 2009 10:31 PM
How to Force file download box when clicking on a link for a .pdf file karups Microsoft VB .NET 1 24th Mar 2006 02:01 PM
How to Force file download box when clicking on a link for a .pdf file karups Microsoft C# .NET 0 24th Mar 2006 12:52 PM
How to Force file download box when clicking on a link for a .pdf file karups Microsoft C# .NET 0 24th Mar 2006 12:52 PM
Clicking on Link to .MPG File Will Not Open It Automatically z_q-g.-u@cox.net Windows XP Internet Explorer 1 30th Nov 2005 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:38 AM.