Shine Tutorial    
  shinetutorialtopsideimage
HOME DOS OS C,C++ HTML CSS XML JAVA ASP PHP SQL OFFICE MULTIMEDIA MORE... CERTIFICATION ABOUT
 
S T ADVT
TUTORIALS
 

MS - DOS Command

« Previous Next Chapter »

Microsoft DOS move command

Quick links

About move
Availability
Syntax
Examples

About move

Allows you to move files or directories from one folder to another, or from one drive to another.

Availability

The move command is an internal command that is available in the below Microsoft operating systems.

MS-DOS 6.0 and above
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

Moves files and renames files and directories.

To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination

To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2

[drive:][path]filename1 Specifies the location and name of the file or files you want to move.
destination Specifies the new location of the file. Destination can consist of a drive letter and colon, a directory name, or a combination. If you are moving only one file, you can also include a filename if you want to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm you want to overwrite an existing destination file.
/-Y Causes prompting to confirm you want to overwrite an existing destination file.

The switch /Y may be present in the COPYCMD environment variable. This may be overridden with /-Y on the command line. Default is to prompt on overwrites unless MOVE command is being executed from within a batch script.

Examples

move c:\windows\temp\*.* c:\temp

Move the files of c:\windows\temp to the temp directory in root, this is of course assuming you have the windows\temp directory.

move "Shine Tutorial" Shine

If your directory name has a space, it must be surrounded with quotes, otherwise you will get a "The syntax of the command is incorrect." error message. In the above example, this command would move the "Shine Tutorial" directory into the Shine directory contained in the same directory.


« Previous Next Chapter »