English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i'd like to know how to copy file from one directory to a second directory which has already been created. i have this example TestBanking.java file from the resources\mod03_types\ directory to src\com\mybank\test\ directory. Im using this comand on the Comand Promt window copy ..\..\resources\mod03_types\TestBanking.java src\com\mybank\test\ but when i try it it gives me error mesage specified path not found. Can some one please help.

2006-10-19 05:22:57 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

You mention command prompt, so my initial guess about whether you are trying to copy from a program or within an application will be assumed inaccurate.
To copy a file from \resources\mod03_types\ to a folder called \myfiles you would use
COPY \resources\mod03_types\ \myfiles\

If you are doing this from a command prompt you may also Change directories until you are in the folder that has your files and just type COPY

If you are doing it from an application or a programming point of view make sure the file is not being used at the time you try to move or copy it, also make sure you are specifying a drive letter and/or computer name (if applicable.)

2006-10-19 05:30:55 · answer #1 · answered by Anonymous · 0 0

The easiest way is to open two instances of Windows Explorer (start, all programs, accessories, windows explorer)
Have the first one open your sourse directory, and the second the destination directory. Highlight all of the files you want to copy by holding down the CTRL key while selecting with the mouse.
Right click on one of the files, select copy. Go to the desitnation folder, right click, select paste. They'll be copied.

2006-10-19 12:35:54 · answer #2 · answered by Deirdre H 7 · 0 0

fedest.com, questions and answers