Running rasdial.exe hidden from view...

Posted on 2006-05-04
Last Modified: 2013-11-12
Hi guys,

Just wrote a .bat that automatically connects my VPN...only problem is that the batch file itself contains my user name and password(this I can hide myself) but it also shows it in the MS-DOS window while auto connecting...It has been years since I scripted anything using batch files and cannot remember the switch to run rasdial.exe hidden from view...
Help me out y'all...
Question by:1_UP
    LVL 11

    Accepted Solution

    Hi 1_UP,

    Isn't "echo off" working? I hope it is.
    LVL 3

    Author Comment

    Hey thanks WelkinMaze...

    Sorry man, I beat ya to the punch, by googling around a little today!!! I reaaranged the script(adding @echo off, of course), compiled it to a .exe, and it works fine when launched from the Startup folder. Completely hidden, and all that happy cr@ppy... But, now I am trying to run it as a Windows Service, and it is giving me a whole new series of problems!!!

    I used srvany.exe and instsrv.exe to set it up as a service, edited the appropriate keys in the registry, but the service will not auto-start, and when I try to start the service manually it is giving me an Error 5: Access Denied...

    Any ideas???

    LVL 11

    Expert Comment

    I'm not so familiar with windows services. :(
    Except for not very smart tips like (restart your computer) I won't help you much in this area.
    Maybe it's better to close this question and open a new one defining the new problem.
    LVL 3

    Author Comment

    I will thanks!!! Sorry to waste your time buddy...

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    The Fluent Interface Design Pattern You can use the Fluent Interface ( design pattern to make your PHP code easier to read and maintain.  "Fluent Interface" is an object-oriented design pattern that r…
    Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now