• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1352
  • Last Modified:

Running rasdial.exe hidden from view...

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...
1_UP
0
1_UP
Asked:
1_UP
  • 2
  • 2
1 Solution
 
WelkinMazeCommented:
Hi 1_UP,

Isn't "echo off" working? I hope it is.
0
 
1_UPAuthor Commented:
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???

1_UP  
0
 
WelkinMazeCommented:
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.
0
 
1_UPAuthor Commented:
I will thanks!!! Sorry to waste your time buddy...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now