批处理 中的 MOVE函数

首页 / 批处理入门教程 / 批处理 中的 MOVE函数

此批处理命令在目录之间移动文件或目录。

MOVE - 语法

move [source] [destination]

文件将从源复制到目标位置。

无涯教程网

MOVE - 示例

以下示例显示了move命令的不同变体。

@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

所有操作均按照批处理文件中的备注执行。

链接:https://www.learnfk.comhttps://www.learnfk.com/batch-script/batch-script-move.html

来源:LearnFk无涯教程网

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

Java核心技术面试精讲 -〔杨晓峰〕

Nginx核心知识150讲 -〔陶辉〕

透视HTTP协议 -〔罗剑锋(Chrono)〕

Kafka核心技术与实战 -〔胡夕〕

性能优化高手课 -〔尉刚强〕

Redis源码剖析与实战 -〔蒋德钧〕

深入C语言和程序运行原理 -〔于航〕

徐昊 · TDD项目实战70讲 -〔徐昊〕

Vue 3 企业级项目实战课 -〔杨文坚〕

好记忆不如烂笔头。留下您的足迹吧 :)