AutoHotkey Community

It is currently May 27th, 2012, 2:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 25th, 2009, 1:15 pm 
Offline

Joined: August 12th, 2009, 6:07 pm
Posts: 26
I have loaded a simple text file to my website, built a program to download that file. Everythinng works fine so far. I then delete the file off my webiste, re publish it with the changes, and yet the UrlDownloaToFile is still downloading the file (it isn't just creating a file with the same name, it has the content of the file). I tried going to the link in a web browser but the page is not found, as it is not supposed to be.

I realize this question is a mix between my website hosting, unrelated, and AHK. But I have exhausted my options on the website side and their tech support said the file is not there. Anyone have a clue as to how the UrlDTF still has this file stored somewhere?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 1:27 pm 
Offline

Joined: November 14th, 2007, 2:47 pm
Posts: 335
Location: London, England
A future tip would be just to replace the existing file rather than delete it first.

How about creating a new folder for it, and re-directing the script to it?

Check that it exists by typing the URL into Explorer obviously.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 25th, 2009, 1:45 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
You may use HttpQueryContentLength() to find the filesize of target.
Like:

Code:
If  HttpQueryContentLength( URL )
    URLDownloadToFile, %URL%, %File%


Uminnsky wrote:
it isn't just creating a file with the same name, it has the content of the file).


What version of AHK are you using?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 7:33 pm 
Offline

Joined: August 12th, 2009, 6:07 pm
Posts: 26
SKAN wrote:
You may use HttpQueryContentLength() to find the filesize of target.
Like:

Code:
If  HttpQueryContentLength( URL )
    URLDownloadToFile, %URL%, %File%


Uminnsky wrote:
it isn't just creating a file with the same name, it has the content of the file).


What version of AHK are you using?


Using the most recent as of the past couple months.

Quote:
How about creating a new folder for it, and re-directing the script to it?

Check that it exists by typing the URL into Explorer obviously.


Yes, I could alter the script etc..., but my intention is for the script to remain unchanged on other user computers. When I want to disable the script from being able to install the file, I simply delete it off the website.

That is why it is puzzling, the file does not exist when I run the url in explorer, except the UrlDTF is still finding it and downloading it to the computer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 9:12 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6071
Location: San Diego, California
Post you code and let us give it a try.
Please, make the code compilable and just a short script.

Leef_me


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 9:40 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Maybe your local or network browser cache is playing tricks on you, I know from experience that people report they don't see changes in files, when they look the next day the "see" it. Report back tomorrow :wink:

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn, XstatyK, Yahoo [Bot] and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group