【发布时间】:2016-02-05 05:00:42
【问题描述】:
我一直在寻找解决方案,并找到了类似解决方案,但它们要么具有固定长度的文件名,要么用于对文件夹中的文件进行排序,而不是移动它们。
我正在尝试做的是,例如,当工作人员在 S 驱动器 中放置一个名为:
的文件时Bloggs Joe AHC20410 Student Forms.pdf
批处理文件(在一天中的特定时间运行)会将文件移动到 H 盘,进入文件夹:
H:\Student Records Current\Bloggs Joe AHC20410
因此,例如 S Drive 在批处理文件运行时可能如下所示:
Bloggs Joe AHC20410 Student Forms.pdf
Bloggs Joe AHC20410 Evidence.jpg
Doe Jane AHC31010 Workbook.doc
Doe Joe AHC20410 Images.png
任何帮助将不胜感激!
【问题讨论】:
-
见
move /?。用引号将路径括起来。键入help以获取命令列表。有关命令提示符下的一些约定,请参阅stackoverflow.com/questions/31820569/…。
标签: file batch-file directory