将特定文件从一个文件夹复制到另一个文件夹
我希望你能帮助我。本质上,我的外部硬盘中有大约 300,000 个 excel 文件,这是 50,000 次模拟的输出。外部硬盘驱动器文件夹中有各种文件,但我希望复制并粘贴到 matlab 目录中的特定文件是:
result_simulation_xI_byCal_totale % 其中 x 是 1..50000 中的整数
其余文件是无关的,不会用于绘图(至少目前如此)。我需要将上述名称的所有 50000 个文件复制到我的目标文件夹中。
源文件夹是F:\ 目标文件夹是:C:Documents\MATLAB
我已经阅读过但正在努力,希望有人能够帮助我。
提前致谢。
议员
I hope you might be able to help me. Essentially I have about 300,000 excel files in an external hard drive which is the output from 50,000 simulations. There are various files in the external hard drive folder but the specific file(s) which I wish to copy and paste in my matlab directory are:
result_simulation_xI_byCal_totale %where x is an integer from 1..50000
The rest of the files are extraneous and will not be used for plotting (at least at the moment). I need to copy all 50000 files of the above name to my destination folder.
The source folder is F:\
The destination folder is: C:Documents\MATLAB
I have read around but am struggling and hope that someone may be able to help me.
Thanks in advance.
mp
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Windows 上,您可以通过两种方式执行此操作,一种是使用计算机的命令提示符或黑屏模式(如果有),并使用带有参数值和 * 通配符之类的内容的复制命令。第二种是使用 Windows 资源管理器并在类似这样的块中手动完成所有操作 - 单击左列中显示设备和一些文件夹的驱动器号,然后单击要将文件复制到的目标文件夹,然后单击驱动器号,然后是要从中复制文件的文件夹。单击列表中的第一个文件名(此任务的最佳显示格式),然后按住 Shift 键,然后一次一个或连续按下光标向下键,直到突出显示合理数量的文件,不再赘述一次超过 50 个文件,然后松开 Shift 键。现在将鼠标光标移动到列表的突出显示部分,按住鼠标左键并将块拖动到目标文件夹名称的顶部,您应该看到一个 + 符号,保持鼠标稳定,然后释放将手指从鼠标按钮上移开,然后应按照进度面板中所示的方式复制文件,然后在复制完成时将鼠标移至右侧。根据需要多次重复这种有效但劳动密集型的方法。
On windows you can do it 2 ways, one is to use the command prompt or black screen mode of the computer if there is one and use the copy command with parameter values and something like a * wildcard character. The second is to use windows explorer and do it all manually in blocks like this - click on the drive letter in the left column showing the devices and some folders, then click on the destination folder you want to copy the files into, next click on the drive letter then folder from where you want to copy the files from. Click on the first filename in the List (best display format for this task), then press and hold down the shift key and then press the cursor down key one at a time or continuously until a reasonable number of files are highlighted, say no more than 50 files at a time, and release the shift key. Now move the mouse cursor into the highlighted part of the list, press and keep pressed the left mouse button and drag the block over to and on top of the destination folder name and you should see a + symbol, keep the mouse steady, then release your finger from the mouse button and the files should then be copied over as shown in a progress panel, then move the mouse away to the right while copying is done. Repeat as many times as necessary this effective but labour intensive method.
不确定这个问题是否属于 stackoverflow,但无论如何:
打开命令提示符(cmd.exe)并使用以下命令循环复制 50,000 次:
Not sure this question belongs on stackoverflow, but anyway:
Open the command prompt (cmd.exe) and use the following command to copy 50,000 times in a loop: