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 ...
Wscript.shell
-
- Posts: 388
- Joined: Sun Nov 06, 2005 3:55 pm
- Location: Southern California, USA
- Contact:
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: Wscript.shell
Code: Select all | Expand
? WshShell:SpecialFolders:Item("Desktop")
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
-
- Posts: 388
- Joined: Sun Nov 06, 2005 3:55 pm
- Location: Southern California, USA
- Contact: