script

  • I have this code which prints files inside the tempprint folder.

    TargetFolder = "C:\tempprint"

    Set objShell = CreateObject("Shell.Application")

    Set objFolder = objShell.Namespace(TargetFolder)

    Set colItems = objFolder.Items

    For Each objItem In colItems

    objItem.InvokeVerbEx ("Print")

    Next

    But its poping up the print dialog to print every file.How do I suppress the print dialog and print all the files(300 files) in the tempprint directory smoothly.

  • Have you tried the Output-Printer command? I believe that this prints to the default printer using the default settings unless specified otherwise.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply