Solved

Copying files with a Batch file

Posted on 2004-09-01
4
370 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

20 Experts available now in Live!

Get 1:1 Help Now