如何在共享虚拟主机环境中创建文件观察器
我有一个 Windows 共享网络托管,我想在那里创建一个文件观察器,它将监视我的图像文件夹并调整新图像的大小。
我想将其作为一个单独的组件,因为我以后可能会卖给其他人。
有任何想法吗?
I have a windows shared web hosting, and i want to create there a file watcher which will monitor my images folder and resize the new images.
I thought to make it as a separate component because i may sell to others later.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将很难在共享环境中实现文件观察器。 通常,实现此类功能的最简单方法是将其编写为 Windows 服务并使用内置的 .NET 文件/目录监视类。
除非您有能力在共享服务器上安装应用程序/服务,否则我认为您会发现自己运气不好。
You're going to have a hard time implementing a file watcher in a shared environment. Usually the easiest way to implement something like that is to write it as a Windows service and use the built in .NET file/directory monitoring classes.
Unless you have the ability to install applications/services on your shared server, I think you're going to find that you're out of luck.