Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copying files with a Batch file

Posted on 2004-09-01
4
Medium Priority
?
379 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

879 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