Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Create a Shortcut to DUN

 Keywords: ras dial up networking connectiod dun shortcutmake 

Question:

Is it possible to create a shortcut for my DUN connectoid to the Windows\Desktop? shortcutmake () only create shortcut refer to file!!!! Is there any command I can use to create the connectoid shortcut on the Desktop?

Answer:

We've not been able to figure that one out.

You could make a shortcut to a WinBatch script that then runs the connectoid. Not good but it works.

Or

You could try the following, however it doesn't reference a specific connectiod, and requires RAS is supported by Rasphone.pbk files....

appdata=ShortcutDir("Common AppData",1,1)
desktop=ShortcutDir("desktop",0,1)
lnkfilename = StrCat(desktop,"Dun.lnk")
if FileExist(lnkfilename)==@false
	rasphonebk = StrCat(appdata,"Microsoft\Network\Connections\Pbk\rasphone.pbk")
	if FileExist(rasphonebk)
	   ShortcutMake(lnkfilename,rasphonebk ,"", "", @NORMAL,0)
	endif
endif

Article ID:   W15162