Solved

DOS Batch update file

Posted on 2004-10-29
196 Views
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.  

Thanks.

0
Question by:dennisliabenow
    3 Comments
     
    LVL 95

    Expert Comment

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

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

    Author Comment

    by:dennisliabenow

    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?
    0
     
    LVL 95

    Accepted Solution

    by:
    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"
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Lean Six Sigma Project Manager Certification

    There are many schools of thought around successful project management, but few as highly regarded as the Six Sigma and Lean methods. With 37 hours of learning, this training will explain concrete processes for increasing efficiency and limiting wasted time and effort.

    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…
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    933 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now