Wscript.shell

Wscript.shell

Postby byron.hopp » Sat Nov 17, 2018 1:05 am

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Wscript.shell

Postby nageswaragunupudi » Sat Nov 17, 2018 4:51 pm

Code: Select all  Expand view
? WshShell:SpecialFolders:Item("Desktop")
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Wscript.shell

Postby byron.hopp » Sat Nov 17, 2018 5:32 pm

Thank you my friend...Works great.
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 112 guests