New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Mapping a PC drive via a VPN


Post Reply New Thread Subscribe

 
Thread Tools
Imhotepblue

 
Member Since: Jul 12, 2013
Location: Harrogate, North Yorkshire
Posts: 3
Imhotepblue is on a distinguished road

Imhotepblue is offline
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
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,948
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
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
QUOTE Thanks
Imhotepblue

 
Member Since: Jul 12, 2013
Location: Harrogate, North Yorkshire
Posts: 3
Imhotepblue is on a distinguished road

Imhotepblue is offline
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
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,948
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
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
QUOTE Thanks
Imhotepblue

 
Member Since: Jul 12, 2013
Location: Harrogate, North Yorkshire
Posts: 3
Imhotepblue is on a distinguished road

Imhotepblue is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Problems after disk replacement | Gimp viewer plugin »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Switching - Using my USB Data drive as NAS with Mac? nycfonephreak Switcher Hangout 8 12-01-2012 01:10 PM
disk utility won't recognize internal drive unless system is booted from external dri Mandochamp OS X - Operating System 0 10-02-2012 02:48 PM
VPN Network Drive access baberb OS X - Operating System 1 05-16-2012 09:11 PM
VPN to network drive slows down Adobe programs? Morgan19 OS X - Apps and Games 0 09-15-2010 01:10 PM
Creating backups and bootable images... 2kx2 Switcher Hangout 4 05-26-2007 09:53 PM

All times are GMT -4. The time now is 10:59 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?