HI Everyone, I have an example of how to copy the files by using dos from drive C: to D:, but sad to say i don't know how to copy the different extension by using DOS in the same destination. Can you give me an example
copying different extension by using DOS
Collapse
X
-
Originally posted by vanz10HI Everyone, I have an example of how to copy the files by using dos from drive C: to D:, but sad to say i don't know how to copy the different extension by using DOS in the same destination. Can you give me an example
the same destination? i don't think that is possible unless u will rename the filename or extension name.
for DOS command:
type copy filename.ext d:\subfolder
or type copy/? to view the list of commands for copy command.
you can use ? and * for wildcards. were ? for single character and * for 2 or more characters. -
Originally posted by vanz10HI Everyone, I have an example of how to copy the files by using dos from drive C: to D:, but sad to say i don't know how to copy the different extension by using DOS in the same destination. Can you give me an exampleComment
-
Originally posted by vanz10HI Everyone, I have an example of how to copy the files by using dos from drive C: to D:, but sad to say i don't know how to copy the different extension by using DOS in the same destination. Can you give me an exampleComment
-
Originally posted by CyberdyneOff topic as in a sense of you guys not helping the guy but instead arguing about using or not using DOS.
Right ignoring all the flags that you could use to the copy command it is basically
copy <sourceFile> <destination>
The sourceFile can optionally include an absolute or relative path, and can include wild cards (* for any number of any character and ? for any single character).
Destination can just be a path (absolute or relative) or it can be a new file name (optionally including an absolute or relative path).
So to copy to a different extension in the same directory you would just specify both file names including the new extension in the destination.
For example to copy from
c:\Banfa\cv.doc
to
c:\Banfa\cv.rtf
then you can always use
copy c:\Banfa\cv.doc c:\Banfa\cv.rtf
If the current directory is already c:\banfa you could also use
copy cv.doc cv.rtf
or
copy .\cv.doc .\cv.rtf
. is a directory that exists for every directory which equates to the current directory
If the current directory is c:\ you could also use
copy Banfa\cv.doc Banfa\cv.rtf
If the current directory is c:\temp you could also use
copy ..\Banfa\cv.doc ..\Banfa\cv.rtf
.. is a directory that exists for every directory (except the root) which equates to the current directories parent directory.Comment
Comment