收到输入fie时触发exe [英] Triggereing exe when an input fie is recieved

查看:71
本文介绍了收到输入fie时触发exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个exe,它根据从顺序输入文件中收到的数据创建excel报告。有没有办法在使用VB.net代码在名为InputFile的文件夹中收到新的输入文件后触发exe?



输入文件和exe放在名为Report的文件夹。

Hi,

I have an exe which creates excel reports based on the data it recieves from a sequential input file. Is there a way to trigger the exe once a new input file is recieved in the folder named InputFile using VB.net code?

Input file and the exe are placed in the same folder named "Report".

推荐答案

有一种方法可以在使用VB在名为InputFile的文件夹中收到新输入文件后触发exe .net代码?

根据你的说法,你需要定期跟踪文件夹中的文件(可能是通过Windows服务)。找到新文件后,您可以使用 Process.Start 运行相应的exe。



请试用如果您遇到任何问题,请发布具体问题。
Is there a way to trigger the exe once a new input file is recieved in the folder named InputFile using VB.net code?
Based on what you say, you need to keep track of files in the folder at regular interval (probably via a windows service). Once a new file is found, you can run the corresponding exe using Process.Start.

Please try out, and post specific issue if you face any.


这篇关于收到输入fie时触发exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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