| Script to print all files in folder and subfolders Can you write a piece of code or a script to print all the files in a folder and its sub folders? I can write a vbs script to print all files in one folder but I have no idea how to include sub folders.
The script I've been using is shown below.
Any help?
TargetFolder = "EXAMPLE FOLDER"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(TargetFolder)
Set colItems = objFolder.Items
For Each objItem in colItems
objItem.InvokeVerbEx("Print")
Next
__________________ No matter where you go, you are what you are player
And you can try to change but that's just the top layer
Man, you was who you was 'fore you got here http://allannolove.wordpress.com |