如何将文件从目录共享Temp文件夹重命名为带时间戳的文件夹 [英] How to rename file from directory shared Temp folder into timestamped folders

查看:177
本文介绍了如何将文件从目录共享Temp文件夹重命名为带时间戳的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙,我有一个文件被转储到临时文件夹中。示例文件名testimageYYMMDDHHMMSS.JPG,我要做的是一个foreach循环,它会自动将它移动到同一个FTP目录中的新位置,新的位置文件夹和子文件夹将具有该目录;年份的1个文件夹,月份的12个文件夹,星期几的31个文件夹,一周中每天的4个时间文件夹(每6个小时0000,0600,1200,1800)。



提前致谢

Please help, I have a file that gets dumped into a temp folder. Example file name testimageYYMMDDHHMMSS.JPG, what I am trying to do is a foreach loop that will automate moving it to the new location within the same FTP directory, which the new location folder and subfolder will have; 1 folder for the year,12 folder for the months, 31 folder for the days of the weeks, with 4 time of day folders in each day of the week (every 6 hours 0000,0600,1200,1800).

Thanks in advance

推荐答案

这篇关于如何将文件从目录共享Temp文件夹重命名为带时间戳的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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