Results 1 to 6 of 6
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Run Shortcut from BATch file

    I'd like to be able to run a shortcut from a DOS BATch file.

    Right now I have a shortcut on my desktop, VIF.LNK, that points to the dial-up access window entry for the connection for my ISP (VIF.COM).

    I'd like to be able to perform some logging tasks over and above what dial-up access might give me, and for that reason choose to run a DOS BATch file to fire up the connection.

    I can find nothing in the documenttation to suggest how this might be done, and would appreciate any suggestions. Thanks.

  2. #2
    ileacy
    Guest

    Re: Run Shortcut from BATch file

    Should be a piece of cake.

    A reference to almost any Windows executable, including links, can be placed in a DOS batch file.

    One warning however, the DOS batch will continue as soon as the program is launched.

    You can easily test this by right clicking any link, click properties from the menu, then COPY the full path to the link, INCLUDING the quotes.

    Start a DOS window. Paste the copied path. Press Enter.

    You should see the results of executing the link.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Shortcut from BATch file

    > Should be a piece of cake.


    I agree. But it ain't.

    Have you looked at a shortcut to a dial-up? It's a LNK file, and it is not your basic piece of cake.



    > A reference to almost any Windows executable, including links, can be placed in a DOS batch file.


    I claim that for a shortcut to a dial-up connection this is not true.

    Sure, for the shortcut to MSHearts.EXE and all the other truly useful stuff on my desktop I can paste the link, but not for a shortcut for a dial-up connection.

    Try creating a shortcut to a dial-up connection, right-click the shortcut and I think you'll see what I see, or don't see, actually.



    Below I have pasted the ascii and hex view (from LIST.COM) of my C:WINDOWSDESKTOPVIF.LNK


    000000 4C 00 00 00 01 14 02 00-00 00 00 00 C0 00 00 00 L 

  4. #4
    ileacy
    Guest

    Re: Run Shortcut from BATch file

    You are correct. I did not realize you were trying to start DUN from batch.

    A better statement is that

    Almost any Windows executable, which has a full path shown on it's properties page, can be started from a batch file. Other programs which require a launcher may be useable if the launcher can be used from a batch file.

    To start a DUN connection, use the following command to launch a connection to eg. "Test"

    rundll rnaui.dll,RnaDial Test

    Note: The function name (RnaDial) and the connection name (Test) are both case sensitive.

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Shortcut from BATch file

    Ian, thanks. This works fine.

    I now have a BATch file that not only logs each dial attempt, but allows the user (me!) to categorize how well the connection went.


    <pre>:top

    rundll rnaui.dll,RnaDial VIF


    Echo w. Worked fine
    Echo f. Failed connect
    Echo p. Other problem
    Choice /C:wfp Choose
    if errorlevel 3 goto OtherProblem
    if errorlevel 2 goto FailedConnect
    if errorlevel 1 goto WorkedFine
    goto top

    :WorkedFine
    log -t Good Connection
    goto end

    :FailedConnect
    log -t Failed Connection
    goto end

    :OtherProblem
    log -t Other Problem
    goto end

    :end

    </pre>


  6. #6
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Shortcut from BATch file

    BTW, this just in. My ISP (vif.com) SSWWOORREE that failed logins were my fault. They wanted me to reinstall NetScape, Eudora, even though I wasn't even getting past the "logging on to network" phase of the Dial-Up connection. Oh, then my dial-up is wrong. replace that, etc etc etc.

    I grabed the "rundll" from the lounge and started keeping stats(attached as LOG.TXT) . Behold and Lo! I have evidence that the peopblem probably was at their end, and now they admit it!


    From: "VIFTech (Talal)" <viftech@vif.com>
    To: <cgreaves@vif.com>
    Subject: Re: Difficulties logging on
    Date: Fri, 16 Nov 2001 13:49:05 -0500
    X-Mailer: Microsoft Outlook Express 6.00.2600.0000

    Hello,

    Thank you for your correspondence. My name is Talal and I am pleased to have
    this opportunity to address your inquiry,
    A defective interface was replaced this week, this had caused a temporary
    interruption for dialup members in order to commit the change to the main
    toronto's core router.
    Your incident report as well as several other members had helped determining
    the location of the problem faster.

    We apologize for misunderstanding your incident report in the beginning but
    you can rest assured that we always escalate problem reports to all the
    technical team when an issue like this happens.
    We apreciate your patience and hope to continue to serve you.

    Talal Al-Dik eng.
    VIF Internet
    (888) 321 3737

    > >
    > > >called on October 23rd. We have not received any similar complaints
    from
    > > >our members from the Toronto area, the problem seems to lie within your
    > > >configuration or hardware components. Here are once again the possible
    > > >solutions to try to fix your problem:
    > >
    > > Thank you. I implemented as many of your suggestions as seemed feasible
    to
    > > me, with little effect.
    > >
    > > I have continued to monitor my login attempts through the little batch
    > file.
    > >
    > > I note with interest that since the Toronto Node went down (I got a busy
    > > signal for about 90 minutes Monday November 12th around 4pm) and was
    > > resusciated, I have had not a single failure, as the attached log file
    > shows.
    > >
    > > I know, from my own experience as a provider of technical support, that
    > all
    > > too often the user has unwittingly made a change. During this period of
    my
    > > difficulties, a CBC live feed site appeared to have installed a TV
    adapter
    > > to my configuration without informing me. That's par for the course.
    > >
    > > However, when the failure to connect has been evident in an old Win95
    > > installation, and a brand new (as in FDISK) Win98SE installation, with a
    > > new WinMdem and the old DOS modem put in service alternatively, there is
    > > reasnable doubt about one end of the system.
    > >
    > > It is not my desire to get into a slanging match, as I want to continue
    > > doing business with VIF. However, in the interests of my better
    > > understanding of the ISP system, I would appreciate knowing, in sumamry,
    > > what went on Monday afternoon in Toronto.
    > > Christopher Greaves (416) 621-9348
    > > web address http://www.vif.com/users/cgreaves/homepage.htm
    > >
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •