批处理 中的 MOVE函数

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

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

MOVE - 语法

move [source] [destination]

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

无涯教程网

MOVE - 示例

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

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

来源:LearnFk无涯教程网

@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

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

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

技术教程推荐

趣谈网络协议 -〔刘超〕

RPC实战与核心原理 -〔何小锋〕

Vim 实用技巧必知必会 -〔吴咏炜〕

体验设计案例课 -〔炒炒〕

朱涛 · Kotlin编程第一课 -〔朱涛〕

Serverless进阶实战课 -〔静远〕

深入浅出可观测性 -〔翁一磊〕

零基础GPT应用入门课 -〔林健(键盘)〕

结构学习力 -〔李忠秋〕

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