批处理 中的 MOVE函数

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

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

MOVE - 语法

move [source] [destination]

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

无涯教程网

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

来源:LearnFk无涯教程网

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

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

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

技术教程推荐

技术领导力实战笔记 -〔TGO鲲鹏会〕

机器学习40讲 -〔王天一〕

从0开始学微服务 -〔胡忠想〕

Android开发高手课 -〔张绍文〕

Java性能调优实战 -〔刘超〕

消息队列高手课 -〔李玥〕

系统性能调优必知必会 -〔陶辉〕

Tony Bai · Go语言第一课 -〔Tony Bai〕

徐昊 · AI 时代的软件工程 -〔徐昊〕

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