Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DOS Batch update file

Posted on 2004-10-29
3
Medium Priority
?
199 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
Comment
Question by:dennisliabenow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 96

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

Author Comment

by:dennisliabenow
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?
0
 
LVL 96

Accepted Solution

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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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…
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

609 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