Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How are Libraries (shdocvw.dll) added to a vbscript for WSH

42 views
Skip to first unread message

Alan Burch

unread,
Jan 24, 2000, 3:00:00 AM1/24/00
to
I need to be able to use the shodocvw.dll which has a shell folder object
I'd like to use. I want to be able to copy all contents of a folder.

What steps do I need to do to add this to WSH so it's exposed?

The code I want to try for now is something like the following....

Dim shell, folder

Set shell = CreateObject("Shell.Application")
Set folder = shell.NameSpace(foldername)
MsgBox folder.Title


Thanks....

Al

Michael Harris

unread,
Jan 24, 2000, 3:00:00 AM1/24/00
to
To use the Shell.Application object you need Active Desktop.  That's standard for Win98 and Win2000.  For Win95 and NT4 you only get Active Desktop with an IE4 install with the Desktop Update option.
 
I think what you really want is to use the Scripting.FileSystemObject in the Scripting Runtime Library that comes with WSH.
 

--
Michael Harris
"Alan Burch" <abu...@vcd.hp.com> wrote in message news:86i77l$d4v$1...@news.vcd.hp.com...
0 new messages