Hello:
I have a macro that successfullly downloads files my Internet files. Whenever new files are posted to my online source, I would like to download those new files. However, before downloading any file, I need to be able to check to see if that files already exists in the iMacro default download location on my local hard drive.
The basc download macro segment is as follows:
----------------------------------------------------------------------------------------------------------
ONDOWNLOAD FOLDER=* FILE=*
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:frmPlay+-Download ATTR=VALUE:Download
----------------------------------------------------------------------------------------------------------
* How can I modify this macro segment so that the download is performed ONLY IF that file has NOT already been downloaded ?
Thanks,
Boomerang.
Test before Downloading
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Re: Test before Downloading
What is the harm in downloading a file a second time?
You could try making your files read only which should prevent the scripting engine from downloading them.
You could try making your files read only which should prevent the scripting engine from downloading them.
Re: Test before Downloading
There should be an option in imacros to download a file, but not to overwrite if the file already exists.
Last edited by Ravendey on Thu Apr 10, 2008 2:27 pm, edited 1 time in total.
Re: Test before Downloading
I'm not sure how you are getting your list of files for the download, but one solution is to use VBS.
Using the FileExists method under FileSystemObjects, you can do a search on that for some sample scripts.
You can break up your browser session script up and using VBS to string them together.
This solution requires the scripting version of iMacros.
Steven
Using the FileExists method under FileSystemObjects, you can do a search on that for some sample scripts.
You can break up your browser session script up and using VBS to string them together.
This solution requires the scripting version of iMacros.
Steven