Results 1 to 5 of 5
  1. #1
    Mapping a PC drive via a VPN

    Member Since
    Jul 12, 2013
    Location
    Harrogate, North Yorkshire
    Posts
    3
    Mapping a PC drive via a VPN
    HI,

    I wonder if anyone can help me with this. I am new to Macs.

    I have set up a VPN connection to the PC server in my office but do not know how to map the drive.

    I have the following batch file that did the job when I was using a PC but do not know what to enter as the server address on the iMac.

    @echo off
    rasdial ymc ymcvpn JulyTwenty20
    if errorlevel 1 goto VPNERROR
    echo VPN Connected Successfully
    echo Now Attempting to map S: drive to \\serverpc\documents folder.
    echo Please enter password for YMCPD and press Enter (it will not show it being typed):
    net use S: \\132.168.59.200\Documents /User:serverpc\YMCPD * >nul
    If errorlevel 1 goto MAPERROR
    echo Drive S: Mapped Successfully
    goto End
    :VPNERROR
    echo Sorry there was a problem connecting the VPN. Please try later.
    goto End
    :MAPERROR
    echo Sorry there was a problem with mapping the drive. Please try disconnecting first.
    :End
    pause

    Can anyone suggest what I can try?

    Peter

  2. #2
    Mapping a PC drive via a VPN
    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    You cannot map a drive in that way, especially as unix does not use drive letters so e S: \\192.168.53.100\Documents means nothing to the mac os

    What is the batch file trying to do, auto mount a drive on login?

    Once the VPN connection is established can you see the server in the left hand column in the finder under shared (above devices)
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

  3. #3
    Mapping a PC drive via a VPN

    Member Since
    Jul 12, 2013
    Location
    Harrogate, North Yorkshire
    Posts
    3
    I can see "server PC" in the Finder but a connection cannot be made.

    The batch file is supposed to allow login with a password.

    Peter

  4. #4
    Mapping a PC drive via a VPN
    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    The batch file you have will only work for windows, have they given you the password and username or is the batch file supposed to automate that?
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

  5. #5
    Mapping a PC drive via a VPN

    Member Since
    Jul 12, 2013
    Location
    Harrogate, North Yorkshire
    Posts
    3
    The batch file is supposed to take me to the folder on the server which is accessible to me only (known as YMCPD) and I am then asked for a password (which I have).

    By the way, I can no longer see the server in the Finder although it is shown as "connected".

    Thanks for trying to help.

    Peter

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with mapping a drive
    By rwelgosh in forum OS X - Operating System
    Replies: 0
    Last Post: 07-22-2012, 06:31 PM
  2. Mapping a drive!
    By glennbtn in forum OS X - Operating System
    Replies: 2
    Last Post: 01-01-2009, 03:55 PM
  3. Mapping Drive / Persistant?
    By grumblenoise in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 12-20-2007, 03:16 PM
  4. Mapping Network Drive
    By DoubleCap in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 03-21-2007, 07:58 AM
  5. Mapping a network drive
    By muos in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 02-02-2007, 09:44 AM

Posting Permissions

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