Page 1 of 1

Test before Downloading

Posted: Tue Apr 08, 2008 9:21 am
by Boomerang

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:

* How can I modify this macro segment so that the download is performed ONLY IF that file has NOT already been downloaded ?


Re: Test before Downloading

Posted: Tue Apr 08, 2008 2:43 pm
by mknoll1
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.

Re: Test before Downloading

Posted: Tue Apr 08, 2008 5:10 pm
by Ravendey
There should be an option in imacros to download a file, but not to overwrite if the file already exists.

Re: Test before Downloading

Posted: Thu Apr 10, 2008 12:04 am
by sctchun
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.