什么是最聪明的方式来处理多个文件 [英] what is the sleakest way to proccess multiple files

查看:136
本文介绍了什么是最聪明的方式来处理多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过将多个文件拖到.exe上启动一个程序,然后让exe根据程序本身的规则和逻辑将文件发送到不同的文件夹。

I am trying to start a program by dragging multiple files on to the .exe and then have the exe send the files to diffrent folders based on rules and logic in the program itself.

我遇到的问题是,我通过控制台应用程序这样做是有限的一次可以发送到exe多少信息。

the problem i am running into is that i do this via a console application there is a limitation on how much information can be sent to the exe at a time.


在运行Microsoft Windows
XP或更高版本的计算机上,可以在命令
提示符处使用的
字符串的最大长度为8191个字符。在运行Microsoft Windows
2000或Windows NT 4.0的
计算机上,在命令提示符下可以使用
的字符串的最大长度为
,为2047
个字符。 / p>

On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.

这个问题最简单的方法是什么?

what would be the most minimalistic way around this issue? I would like to avoid having a program running in the background at all times if possible.

推荐答案

而不是将文件拖到一个 .exe也许你可以创建一个热文件夹将文件放入。您需要编写您的应用程序以监视此文件夹(使用 FileSystemWatcher )并处理传入的文件。

Instead of dragging files to an ".exe" perhaps you could create a "hot folder" to drop the files into. You'd need to write your application to monitor this folder (using something like FileSystemWatcher) and process the incoming files.

这篇关于什么是最聪明的方式来处理多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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