如何在共享虚拟主机环境中创建文件监视程序 [英] How to create file watcher in shared webhosting environment

查看:69
本文介绍了如何在共享虚拟主机环境中创建文件监视程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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?

推荐答案

您将很难在共享环境中实现文件监视程序.通常,最简单的方法是将其编写为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.

这篇关于如何在共享虚拟主机环境中创建文件监视程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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