Launch Shortcut via in the code view

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rh2001
Newbie
Posts: 16
Joined: Tue Sep 14, 2004 9:48 am

Launch Shortcut via in the code view

Post by rh2001 » Tue Sep 14, 2004 9:51 am

I want to launch the a dial up short cut.

However, I don't know how to do this and I am getting an error (11)

I know the shortcut has a .LNK extension, but it still giving me an error.

I really am not all the comfortable with the RASDIAL thing.

Lumumba

Post by Lumumba » Tue Sep 14, 2004 10:35 am

Try this:
Run Program>rasphone

rh2001
Newbie
Posts: 16
Joined: Tue Sep 14, 2004 9:48 am

network and shortcuts calling

Post by rh2001 » Wed Sep 15, 2004 9:19 am

Thanks, but I still would like to call the shortcut and execute it that way.

Would anyone know if that is possible to begin with as there are a lot of shortcuts that are made from the Control Panel that I somehow would like to call.



Lumumba wrote:Try this:
Run Program>rasphone

Lumumba

Post by Lumumba » Wed Sep 15, 2004 11:02 am

as there are a lot of shortcuts that are made from the Control Panel that I somehow would like to call
Act like a real man, click this link :arrow: RUNDLL32

You'll be able to use it like this within a MacroScheduler script (which opens the regional settings time&date control panel).
Run Program>RUNDLL32 SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,@0,1

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Sep 15, 2004 3:55 pm

Thanks again Lumumba for another good link.
On the RUN32DLL link you provided the following seems to apply exactly to rh2001's original question:
21. Start "DialUp Connection" Wizard (Windows 95):

RUNDLL RNAUI.DLL,RnaWizard

Credits: Faris Mlaeb

22. Start DialUp Network:
(Credits for these commands: Michael J. Gregg and Tom Lavedas)

START RUNDLL32 RNAUI.DLL,RnaDial exact name of dialer entry
TRACERT -h 1 -w 1

The RUNDLL command starts DUN, the TRACERT command is supposed to actually start the dialing process. Since I do not have access to any PC with DUN installed, I could not test the TRACERT command's effect.

Use the RASPHONE command in Windows NT, which can also hang up the connection (credits: Simon Sheppard).
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Lumumba

Post by Lumumba » Wed Sep 15, 2004 4:17 pm

Yep, I've seen it as well, but ...
START RUNDLL32 RNAUI.DLL,RnaDial exact name of dialer entry
that component isn't (?) available on my system (W2K), now its up to him to check this out. Thx, Bob.

rh2001
Newbie
Posts: 16
Joined: Tue Sep 14, 2004 9:48 am

still can't get it work

Post by rh2001 » Thu Sep 16, 2004 10:00 am

OK, I tried using RUNDLL32.

However, this is on Windows 2000 so RNAUI is not there.

Also when I try RASDIAL, is asks for the phone book entry but it's not there of course......

Nevertheless, I can get the network window to open and I can see the dial up connection.

But I really want to access this dial up connection directly via a command

I know some programs in their initial install and subsequent registriation process will automatically start up the dial up connection and not even use the browser at that.

Any oher suggestions?

Lumumba

Post by Lumumba » Thu Sep 16, 2004 10:19 am

RASDial (Freeware)
auto dialer. useful in programs such as Pegasus Mail and Mercury mail transport system to work around problems in auto dialing using Dial-up networking / RAS in Windows and Windows NT
:arrow: [RASDial95 1.2 - Download] recommended by Loriss @ the AutoHotkey forum

rh2001
Newbie
Posts: 16
Joined: Tue Sep 14, 2004 9:48 am

it works...

Post by rh2001 » Thu Sep 16, 2004 10:02 pm

rasdial seems to work.

I still had to add a connection name, phone, user id and password which it would seem to already defined in the connection name entry

anyway, seems to work

thanks!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts