WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2002:09:05:13:50:10
Last Updated: 2002:09:05:13:50:10