批量移动文件夹到另一个文件夹中? [英] Batch to move files in a folder to another folder?

查看:2680
本文介绍了批量移动文件夹到另一个文件夹中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建这个目录中的所有文件移动到其父目录中的批处理文件。例如像如果我有一个包含文件的目录东西:

I want to create a batch file that moves all the files in this directory to its father directory. Like for example if I have a directory " Something " that contains files :

...新建文件夹/东西

...New Folder/Something

和我想移动文件的东西,以新建文件夹。

And I want to move the files in " Something " to New folder.

有没有这样的命令?

多谢:)

推荐答案

你在谈论的Windows批处理文件presuming,动*。* .. \\ 应该做的伎俩。

Presuming you're talking about Windows batch files, move *.* ..\ should do the trick.

编辑:例如,如果打开 CMD ,你可以输入:

For example, if you opened cmd, you could input:

cd C:\New Folder\Something
move *.* ..\

这将移动所有文件 C:\\新建文件夹\\东西到它的'父亲'目录

这篇关于批量移动文件夹到另一个文件夹中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆