FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Wscript.shell
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Wscript.shell
Posted: Sat Nov 17, 2018 01: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Wscript.shell
Posted: Sat Nov 17, 2018 04:51 PM
Code (fw): Select all Collapse
? WshShell:SpecialFolders:Item("Desktop")
Regards



G. N. Rao.

Hyderabad, India
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Wscript.shell
Posted: Sat Nov 17, 2018 05:32 PM

Thank you my friend...Works great.

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion