- Batch Script Tutorial
- Batch Script - Home
- Batch Script - Overview
- Batch Script - Environment
- Batch Script - Commands
- Batch Script - Files
- Batch Script - Syntax
- Batch Script - Variables
- Batch Script - Comments
- Batch Script - Strings
- Batch Script - Arrays
- Batch Script - Decision Making
- Batch Script - Operators
- Batch Script - DATE & TIME
- Batch Script - Input / Output
- Batch Script - Return Code
- Batch Script - Functions
- Batch Script - Process
- Batch Script - Aliases
- Batch Script - Devices
- Batch Script - Registry
- Batch Script - Network
- Batch Script - Printing
- Batch Script - Debugging
- Batch Script - Logging
- Batch Script Resources
- Batch Script - Quick Guide
- Batch Script - Useful Resources
- Batch Script - Discussion
Batch Script - MOVE
This batch command moves files or directories between directories.
Syntax
move [source] [destination]
The files will be copied from source to destination location.
Example
The following example shows the different variants of the move command.
@echo off Rem Moves the file list.txt to the directory c:\tp move C:\lists.txt c:\tp Rem Renames directory Dir1 to Dir2, assuming Dir1 is a directory and Dir2 does not exist. move Dir1 Dir2 Rem Moves the file lists.txt to the current directory. move C:\lists.txt
Output
All actions are performed as per the remarks in the batch file.
batch_script_commands.htm
Advertisements