Wscript.shell

Post Reply
byron.hopp
Posts: 388
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Wscript.shell

Post by byron.hopp »

I am hoping to utilize this object to manipulate VM's on my server. I am starting simple:

Function TestCreateShortCut()
Local WshShell := CreateObject("Wscript.shell")
Local cSpecialFolder := WshShell:SpecialFolders("Desktop")
MsgInfo( cSpecialFolder,"Special Folder" )
Return nil

This Errors on the "Local cSpecialFolder" line.
I can not pass "Desktop" (pass nothing) and I get all the possible special folders that I can "for next" through.
All the examples show it as above.

Anybody have better luck with this, I am on "Windows 10 Enterprise".

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Wscript.shell

Post by nageswaragunupudi »

Code: Select all | Expand

? WshShell:SpecialFolders:Item("Desktop")
Regards

G. N. Rao.
Hyderabad, India
byron.hopp
Posts: 388
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: Wscript.shell

Post by byron.hopp »

Thank you my friend...Works great.
Thanks,
Byron Hopp
Matrix Computer Services
Post Reply