Alternative Nation
Go Back   Alternative Nation

Notices

View Single Post
Old 21st February 2008, 10:32am   #1
Jushin Liger
Punisher
Moderator
 
Jushin Liger's Avatar
 
Join Date: Sep 2002
Location: Glasgow
Posts: 9,500
Jushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than youJushin Liger is punker than you
Send a message via MSN to Jushin Liger
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
Jushin Liger is offline   Reply With Quote
 







Powered by vBadvanced CMPS v3.0.0


All times are GMT +0. The time now is 7:57pm.

Forums Directory
Copyright 2000-2008, Alternative Nation
Page generated in 0.18607 seconds with 17 queries