Question:

How to use the copy command at the c prompt?

by  |  earlier

0 LIKES UnLike

hi can somebody please give me an example of how to this command no matter what i do i just cant get this to work

i have a folder called (new folder) and within this i have a txt file called (new 1.txt) i would like to copy this to (new folder 2) thanks

this is part of my revision so can you help thanks

 Tags:

   Report

4 ANSWERS


  1. the basic syntax of the dos copy command is simple

    copy <source file>  <destination file>

    depending on where you are in directory structure you may have to include the full directory tree with the source file and also the destination file

    so if you're at simple C:\

    type in

    copy C:\newfolder\new1.txt  C:\newfolder2\new1.txt

    if your folders and/or file names have spaces in them, you'll need to enclose it in double quotes.  For example

    copy "C:\new folder\new 1 .txt"  "C:\new folder 2\new 1 .txt"

    for more help on the copy command just type COPY /? at the C prompt (it will show you various options you can use with it)


  2. First of all, using DOS, you need to think in terms of directories and subdirectories instead of "folders."  If both of these are subdirectories of the current working directory, your command Could be:

    copy "new folder\new 1.txt" "new folder 2\"

    If they're at some arbitrary place, you'll have to specify the fully qualified path, e.g.,

    copy "C:\main dir\second-level dir\new folder\new 1.txt" "C:\main dir\second-level dir\new folder 2\"

  3. well if the file name is not 8.3 - ie 12345678.exe

    say it was abcdefghijk.exe it would be truncated to abcdef~1.exe

    so it then is 8.3

    also, with spaces in the file name, you will have to put parenthesis around it. - eg "new file 1.txt"

    so a simple syntax string for copy would go...

    copy c:\123\456\12345678.exe c:\abc\

    or

    copy c:\123\456\123456~1.exe c:\abc\

    copy c:\"new folder"\"new 1.txt" c:\"new folder 2"\

  4. highlight the file, or click once on the file.  Hold ctrl + c at the same time.  Then, find the destination you would like to place the file.  Click inside the folder.  Hold ctrl + v at the same time.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.