DOS Batch update file

Posted on 2004-10-29
Medium Priority
Last Modified: 2010-04-14
Trying to create a DOS BATCH file to copy an access database over from one location to another.

My source path is \\hq-file1\Files and Docs\Database\
My destination path is \\hq-file1\Files and Docs\Database\Vegas\

My issue is that dos does not recognize the "Files and Docs" name and I don't know how to represent the DOS equivalent of the file folder.  


Question by:dennisliabenow
  • 2
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12449182
Put the paths you are copying from in quotes.

"\\hq-file1\files and docs\database"
"\\hq-file1\files and docs\database\vegas"

Author Comment

ID: 12449211

here is my actual command line:

copy \\Hq-file1\Files and Docs\database\ucmt.mde \\Hq-file1\Files and Docs\database\SaltLake\Acct\ucmt_Test.mde

So do I put the quotes at the very begining and end or at the beginning and end of each path statement?
LVL 97

Accepted Solution

Lee W, MVP earned 200 total points
ID: 12449246
Here's the command you should use (and whenver possible, especially with share names, DON'T USE SPACES).  With file and folder names you can use the 8.3 characters on them.  Share names don't have that.

copy "\\Hq-file1\Files and Docs\database\ucmt.mde" "\\Hq-file1\Files and Docs\database\SaltLake\Acct\ucmt_Test.mde"

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Now many of you may wonder how you can reach great design with least number of essentials. Isn’t stuffing ‘more and more number of elements that speak for the purpose’ the right way to do it? Erm, not always, and in this write-up, you will see why.
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question