For Programmers: Free Programming Magazines  


Home > Archive > Cobol > September 2004 > Re: IshellLink in Cobol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: IshellLink in Cobol
David Sands

2004-09-29, 3:55 am

If you want to create a shortcut then the simplest approach would be to use
the Shell object from Net Express.

Code required is below. It will add a Shortcut to the Micro Focus site your
StartMenu. This works on 3.1 and 4.0 but I have not ran it on 3.0.

Code is supplied as-is.

Regards
David.

Code >>>>>>>>>>>>>>>>>>>>>

*> This is required for OLE applications
$set ooctrl(+P)
program-id. wshshortcut.
special-names.
call-convention 66 is winapi. *> Non Litlinked apis

class-control.
*> OLE automation classes
wshshell is class "$OLE$WScript.Shell"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com