Groundrush
Registered User.
- Local time
- Today, 11:20
- Joined
- Apr 14, 2002
- Messages
- 1,376
I have just moved into a new premises & have been given a new shiny box with a my own server inside for my database to live in.
The problem I have is that I have to map the network drive for the server on each machine that will need access to it & have been trying to modify a BAT file to copy data from the new server to the C drive of each user.
I understand the coding in the BAT file as I have tested it a number of times at home & at work but for some reason I can't get it to copy from a mapped drive.
I was wondering if anyone has any suggestions as I think it may have something to do with the server & not the code that I am using.
Here is my code
The path for server is \\ldl2180\data
so when mapping the drive I did it this way
I will have to manually put a copy of the database folder in each machine if this does not woprk, but I hope it's just a silly error somewhere.
thanks

The problem I have is that I have to map the network drive for the server on each machine that will need access to it & have been trying to modify a BAT file to copy data from the new server to the C drive of each user.
I understand the coding in the BAT file as I have tested it a number of times at home & at work but for some reason I can't get it to copy from a mapped drive.
I was wondering if anyone has any suggestions as I think it may have something to do with the server & not the code that I am using.
Here is my code
Code:
@ECHO OFF
IF EXIST C:\Simal GOTO :NEXT
MKDIR C:\Simal
:NEXT
XCOPY /S /Y "G:\Simal" "C:\Simal"
CD C:\Simal\Shortcut
SHORTCUT /F:"%USERPROFILE%\Desktop\PMU 2006-2007.lnk" /A:C /I:C:\Simal\Fixit.ico /T:C:\Simal\PMU.mde
DEL ¨%USERPROFILE%\Desktop\PMU_Update.bat¨
QUIT
The path for server is \\ldl2180\data
so when mapping the drive I did it this way

I will have to manually put a copy of the database folder in each machine if this does not woprk, but I hope it's just a silly error somewhere.
thanks
