How to use RasHangup?

  • Thread starter Thread starter mimisam
  • Start date Start date
M

mimisam

Hi,

I need to dial up a connection automatically and cancel it when
needed. I know that Rasdial can be used in a batch file simply as
C:\Rasdial [MyConnection]. And, I read that RasHangup can be used to
cancel the dialing. But I have no idea how to use it in a batch file.
When i type RasHangup in the command prompt, it said that the command
is not recognised.
Anyone can guide me how to use RasHangup in a batch file?
Thanks!!
 
RasHangup is a function for programs to call.

For batch files you might try

rasdial [entryname] /DISCONNECT
 
Back
Top