I have a VBS script on my local machine. I'd like to call a DUN (Dial Up Network connection) file from that script.
I've tried the following method:
but it doesn't work. Any suggestions? I'd be very thankful.
Just to give you some more background information:
1) If you want to try it yourself but you don't have a DUN file, just go to "My Computer", click on "Dial-Up Networking" and choose "Make new connection". Then cut&paste the file (not the shortcut) to the desktop. So you'll get a file with DUN extension on your desktop. If you double-click the icon, the "Connect To" dialogbox is launched. That's what I need to launch from my VBS.
2) I also tried to find the associated program by searching the file types, and it turned out that DUN files are handled by Rundll32.exe. Thus, I've tried to run a command line "rundll32 c:\windows\desktop\nextra.dun" but it didn't work either.
Looking forward to any help!
Thanks in advance,
Uladzik
---
---
I've tried the following method:
Code:
Set dun = GetObject("c:\windows\desktop\nextra.dun")
Just to give you some more background information:
1) If you want to try it yourself but you don't have a DUN file, just go to "My Computer", click on "Dial-Up Networking" and choose "Make new connection". Then cut&paste the file (not the shortcut) to the desktop. So you'll get a file with DUN extension on your desktop. If you double-click the icon, the "Connect To" dialogbox is launched. That's what I need to launch from my VBS.
2) I also tried to find the associated program by searching the file types, and it turned out that DUN files are handled by Rundll32.exe. Thus, I've tried to run a command line "rundll32 c:\windows\desktop\nextra.dun" but it didn't work either.
Looking forward to any help!
Thanks in advance,
Uladzik
---
---