Link to home
Start Free TrialLog in
Avatar of CptanPanic
CptanPanic

asked on

Need a script to automatically save pdf instead of displaying in IE.

I need this script because I have to save hundreds of pdf's from the web.  What makes it even more time consuming is a lot have the same name just in a different directory.  It doesn't seem to complicated, but I do not know windows.  So here is what I need: When IE tries to load a pdf, instead of associating it with acrobat, I want it to send to a batch file that will automatically save it to a directory.  In addition I want the name of the pdf to include the last directory name, for example: ../project1/1.pdf to be saved as project1 - 1.pdf.
Thanks,
CP
Avatar of Merete
Merete
Flag of Australia image

Hi CptanPanic  I donot have a clue how to do this my curiosity got the better of me just wanted to ask why 100's of PDF off web pages./ from the WEB pages??
Why 100"s??  What are you doing?

Avatar of CptanPanic
CptanPanic

ASKER

I need to download all the service pdf's for a vehicle, to make a single pdf locally.
ASKER CERTIFIED SOLUTION
Avatar of mvan01
mvan01
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, to follow your example exactly, your getFile.BAT would be:

@ECHO OFF
URL2file "http://some.domain.com/big/long/directory/%1/%2" "%1 - %2"

I guess that's another reason to separate the last dir and the filename as individual parameters.  :-)  You can make your GetList.BAT file as long as you wish (as many files as you have the patience to download at one time).

Peace and joy.  mvan
I know that my solution for CptanPanic works.  I use it weekly.  Peace and joy.  mvan