[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1323
  • 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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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