OT: Batch printing

Discussion in 'DIY Computers' started by GB, Jan 12, 2007.

  1. GB

    GB Guest

    I have a list of about 20 urls of stuff that I need to print, in the correct
    order. Some of it is pdfs, some simple web pages, and some spreadsheets and
    so on. I need to print them to pdffactory, so I get a single pdf file for
    the whole lot.

    Some of these are quite big, so I am expecting it will take several hours to
    run this.

    If I make a list of shortcuts, I can right-click them and select print. That
    works for printing each one. Is there a simple way to batch up all these
    print commands, please? I am worried that I may have to add on or two more
    URLs and then reprint, so a batch file that automates the process will be a

    Sorry if this is OT, but you guys are sooooo knowledgeable and helpful :)
    GB, Jan 12, 2007
    1. Advertisements

  2. GB

    GB Guest

    In case it's any help to anyone, the following script does it

    TargetFolder = "C:\Yourfolder"
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(TargetFolder)
    Set colItems = objFolder.Items
    For Each objItem in colItems
    Yourfolder with name of the folder containing the shortcuts/files to print
    GB, Jan 12, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.