+ Reply to Thread
Results 1 to 2 of 2

Thread: N00bish question

  1. #1
    Advanced User Renk's Avatar
    Join Date
    17.08.08
    Location
    Elsewhere
    P2P Client
    utorrent
    Posts
    581
    Activity Longevity
    0/20 19/20
    Today Posts
    0/5 ssssss581

    N00bish question

    Frequently (when I start using double vpn), I have to start openvpn with a command line in the command window (I'm on XP). For exemple, the openvpn.exe file is in C:\Program Files\OpenVPN\bin, and the .ovpn file is in C:\Program Files\OpenVPN\config.

    If I type in the command window:
    C:\Program Files\OpenVPN\bin\openvpn C:\Program Files\OpenVPN\config\MyConfig.ovpn, it doesn't work, because "C:\Program is not a known command".

    So, I type successively in the comman window:

    Code:
    cd C:\Program Files\PP_OpenVPN\config
    ..\bin\openvpn.exe  MyConfig.ovpn
    I would like to make a .bat file doing the same thing in one click..
    Primo Avulso Non Deficit Alter
    Reply With QuoteReply With Quote
    Thanks

  2. #2
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,452
    Activity Longevity
    8/20 19/20
    Today Posts
    1/5 ssss39452
    Quote Originally Posted by Renk View Post
    If I type in the command window:
    C:\Program Files\OpenVPN\bin\openvpn C:\Program Files\OpenVPN\config\MyConfig.ovpn, it doesn't work, because "C:\Program is not a known command".
    You need to add quotation marks if the path contains spaces. Try this:
    Code:
    "C:\Program Files\OpenVPN\bin\openvpn.exe" "C:\Program Files\OpenVPN\config\MyConfig.ovpn"
    If you still want a batch file:
    Code:
    @cd /d "C:\Program Files\PP_OpenVPN\config"
    @start ..\bin\openvpn.exe MyConfig.ovpn
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  3. Who Said Thanks:

    Renk (05.03.13) , system28 (05.03.13)

+ Reply to Thread

Tags for this Thread

Posting Permissions

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