Solved

Copying files with a Batch file

Posted on 2004-09-01
4
375 Views
Last Modified: 2010-04-14
I have a batch file that copies autocad .dxf files from a file server to my hard drive (c:). I would like to direct those files being copied to the folder c:\my documents\drawings.
Here is the existing line that gets me to the c: drive:
           copy j:\hal\synth\hsga\sheet?.dxf c:\.

Thanks Jeff

0
Comment
Question by:fanguru1
[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
  • 2
4 Comments
 
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 11953153
Just change it to

copy j:\hal\synth\hsga\sheet?.dxf c:\my documents\drawings
0
 
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 11953170
Or to copy all .dxf files that exist at the time,

copy j:\hal\synth\hsga\*.dxf c:\my documents\drawings
0
 
LVL 57

Accepted Solution

by:
Pete Long earned 125 total points
ID: 11953175
depends on the path to your my dcocuments!!!!!!!

The path to the My Documents folder is stored in the following registry key:
Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Name: Personal
Type: REG_SZ
Value: fully qualified path to storage location

so your command woud be

copy j:\hal\synth\hsga\sheet?.dxf <path from the key above>

remember if theres spaces in the path toy need to put quotes around it i,e.

"c:\documents and settings\username\folder"
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 11953454
ThanQ
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
Configuring Remote Assistance for use with SCCM
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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