以前,我写过一个在Windows中自动执行文件管理任务的程序,但不幸的是,该程序非常基础,最后一次更新是在 2005 年!如果您正在寻找可以处理各种文件管理任务的程序,那么您应该查看Limagito FileMover。
他们有一个名为FileMover Lite的免费版本,它基本上将您限制在一个移动规则中。如果您想为不同的文件夹或不同的时间表和不同的文件类型等设置多个移动规则,那么您必须为单个 PC 版本支付 200 美元以上!这个价格对消费者来说是荒谬的,但如果你将它用于你的公司或 IT 部门,它绝对物有所值。这是迄今为止我见过的最先进的文件复制器/移动器程序。
安装后,您将被大量的功能和选项所淹没。在自动移动、删除和复制文件方面,你几乎可以用这个程序做任何你想做的事情。它还适用于其他非本地位置,例如HTTP、AWS、SQL数据库等。
首先(First),如果您不想安装该服务,可以选中左上角的两个框以运行@Startup和在系统托盘中运行。(Run in System Tray)如果您希望它作为Window服务运行,这将不需要让它在系统托盘中运行,您可以单击顶部的Application Options 选项卡并选择(Application Options)Export to Service。当然,您希望在配置移动规则及其所有选项后执行此操作。
接下来,有一件重要的事情需要理解。通用(Common) 选项(Options)是适用于所有规则的选项(如果您使用的是免费版本,则只有 1 个)并且规则选项(Rule Options)适用于您创建的每个单独的规则。现在你明白了,让我们开始吧。
在Common Options下,您可以设置扫描时间,默认设置为 5 秒。这意味着将每 5 秒扫描一次源目录。如果您不需要一直扫描目录,时间表将允许您设置时间表。(Time Schedule)邮件设置(Mail Setup)将允许您添加您的电子邮件帐户,例如Gmail,以便您可以发送有关某些事件(如错误或成功等)的通知。您还可以通过单击网络驱动器(Network Drive)按钮并添加文件夹来扫描网络驱动器。
下面是程序的核心。在这里,您可以配置源、目标以及您可以想象的所有过滤器和设置。让我们从源头说起。
顶部是源设置(Source Setup ),它具有三个选项卡(源、通用和备份)。您可以通过单击Win按钮来选择(Win)Windows目录,或者您甚至可以使用FTP、SFTP和POP3等源。在文件选项(File Options)下,您可以执行排除正在使用的文件和过滤文件名、文件大小和文件日期等操作。例如,如果您只想移动PDF文件,您可以点击“文件名”按钮,它是“(FileName)包含过滤器(Include Filter.)”旁边最左边的按钮。
要按文件扩展名过滤,您必须输入*.ext; 然后单击添加过滤器(Add Filter)。如果您在此处键入的内容与过滤器匹配,则检查文件(Check Filename)名下的框将变为绿色,否则将变为红色。对于FileDate过滤器,您可以选择早于某个日期的文件,并从Modified Date、Create Date、 Last Access或 Last Write date 中选择过滤器类型。如果您想自动删除早于某个日期的文件,这非常有用。
最后,FileSize过滤器可让您按大小过滤文件。因此,您可以将其设置为仅移动非常大的文件或删除小于 100 KB 的文件等。
在Directory Options下,您可以选择包含子目录、排除基本目录,甚至可以选择子目录扫描深度(0 将无限扫描)。您还可以在目录上设置包含和排除过滤器,甚至选择要应用过滤器的子目录级别!哇!
如果单击Source Setup下的(Source Setup)Common选项卡,您还可以执行其他操作,例如在复制或移动期间重命名文件。单击(Click)该按钮,您可以设置复杂的正则表达式以任何您喜欢的方式重命名文件。如果您想记录每个被移动、复制或删除的文件以供以后查看,您还可以选中“文件内存数据库”选项。(File Memory Database)如果您需要知道文件何时被移动等,这可能很有用。
备份(Backup)选项卡基本上允许您在移动/复制/删除所有文件时创建它们的备份。如果需要,您可以自行检查。现在为目标设置(Destination Setup)。
您可以在此处选择是否移动、复制或删除文件以及您希望它们存储的位置。同样(Again),您可以选择Windows目录作为目的地、FTP/SFTP服务器,甚至是邮件服务器!如果单击Common I,您可以执行删除文件扩展名、更改文件名大小写和设置重命名过滤器等操作。
Common II只有一个选项用于负载平衡和将操作存储到数据库中。在Crypto下,您可以选择在文件传输到目标目录时对其进行加密。
验证(Verify)选项卡很有用,因为它可以让您检查以确保传输正确完成。如果验证失败,您也可以将其写入日志文件或删除该文件。
此程序中有许多更高级的选项,但本文旨在让您从一个总体思路开始。这是一个很棒的小应用程序,如果您进行大量文件移动/删除/复制,购买完整版可能是值得的,这样您就可以创建任意数量的规则。享受!
Automatically Move, Delete, or Copy Files in Windows
Рreviously, I had written about a program to automate file management tasks in Windowѕ, but unfortunately, the program was very basic and was last updated in 2005! If you аre looking for a program that can handle a variety of file management tasks, then you should check out Limagito FileMover.
They have a free version called FileMover Lite, which basically restricts you to one moving rule. If you want to have multiple moving rules for different folders or different schedules and different file types, etc, then you would have to shell out $200+ for the single PC edition! That price is ridiculous for consumers, but if you’re using this for your company or IT department, it’s definitely worth the cost. It’s the most advanced file copier/mover program I have seen to date.
Once you install it, you will be overwhelmed by the massive number of features and options. You can pretty much do anything you want with this program in terms of moving, deleting and copying files automatically. It also works with other non-local locations such as HTTP, AWS, SQL databases, etc.
First off, you can check the two boxes at the top left to Run @Startup and Run in System Tray if you don’t want to install the service. If you want it to run as a Window service, which would negate the need to have it running in the system tray, you can click on Application Options tab at the top and choose Export to Service. Of course, you want to do that after you have configured the moving rule with all of its options.
Next, there is one important thing to understand. Common Options are options that will be applied to all rules (only 1 if you are using the free version) and Rule Options are applied to each individual rule you create. Now that you understand that, let’s get started.
Under Common Options, you can set the scan time, which is set to 5 seconds by default. This means the source directory will be scanned every 5 seconds. Time Schedule will let you set up a schedule if you don’t need the directory scanned all the time. Mail Setup will let you add your email account like Gmail so that you can send out notifications on certain events like errors or success, etc. You can also scan a network drive by clicking the Network Drive button and adding the folders.
Below that is the meat of the program. Here you can configure the source, the destination and all of the filters and settings you could ever imagine. Let’s start with the source.
At the top, is Source Setup and it has three tabs (source, common and backup). You can either choose a Windows directory by clicking the Win button or you can even have a source like FTP, SFTP, and POP3. Under File Options, you can do things like exclude files in use and filter on file name, file size and file date. For example, if you only wanted to move PDF file, you could like on the FileName button, which is the leftmost button next to Include Filter.
To filter by file extension, you have to type in *.ext; and then click Add Filter. The box under Check Filename will turn green if what you type there matches the filter and red if it doesn’t. For FileDate filter, you can choose files older than a certain date and choose a filter type from Modified Date, Create Date, Last Access or Last Write date. This is great if you want to automatically delete files older than a certain date.
Lastly, the FileSize filter will let you filter the files by the size. So you can set it up to move only really large files or delete files smaller than 100 KB, etc, etc.
Under Directory Options, you can choose to include subdirectories, exclude the base directory, or even choose a subdirectory scan depth (0 will scan infinitely). You can also setup include and exclude filters on the directories and even choose to what subdirectory level you want to apply the filters! Wow!
If you click on the Common tab under Source Setup, you can also do other things like rename the files during the copy or move. Click on that button and you can setup complicated regular expressions to rename files any way you like. You can also check the File Memory Database option if you want to keep a record of every file that was moved or copied or deleted for viewing later on. This could be useful if you need to know when a file was moved, etc.
The Backup tab basically lets you create a backup of all the files as they are moved/copied/deleted. You can check that out on your own if you need to. Now for the Destination Setup.
Here you can choose whether to move, copy or delete the files and where you want them to be stored. Again, you can choose a Windows directory for the destination, a FTP/SFTP server, or even a mail server! If you click on Common I, you can do things like delete the file extensions, change the filename case, and setup rename filters.
Common II just has an option for load balancing and for storing the actions into a database. Under Crypto, you can choose to encrypt the files as they are transferred to the destination directory.
The Verify tab is useful as it will let you check to make sure the transfers were done properly. You can also write it out to a log file or delete the file if the verification fails.
There are a lot more advanced options available in this program, but this article was to get you started with a general idea. It’s an amazing little app and if you do a lot of file moving/deleting/copying, it might be worth the cost to purchase the full version so you can create as many rules as you like. Enjoy!