开发者

App running on server, writing XML files - does it need to be a console app?

I've coded an application that generates XML files for use with a mobile phone app using Delphi 7. The application was developed using forms etc. It exits when done. Can this be run once a day as-is, or do I have to make it a console application or add code to allow it be run by the server? The scheduled execution is done by the host.

The application is about 60% done.

It's basically just a heads-up question, so that I know about any snafus beforehand.

Does someone with experience have some helpful tips?

I'm also interested to know if writing files in a server environment (to folders to which I have write access)开发者_如何学Python needs special handling somehow.

Edit: finished it (a while ago) and it writes files accessible via http without any problems. (Well, after configuring IE8 to not require human intervention for every pageload (Trusted Sites/Enhanced Security etc...))


Run your App from Task Scheduler and you'll be fine.


normally your gui (forms stuff) is just an overlay to existing objects. If this abstraction is implemented correctly you should be able to write a small console application, that does nothing but execute your stuff (create main worker object and run the task)...

In general its not a good idea to launch forms applications on a server.. but if it doesn't require interaction (clicking on things) it should work...

Writing files on a server may be a little bit trickier than on a local machine... except your software runs on the server.. Normally you would access all files with a complete URI like file:///c:/whatever/wherever/

All in all its not a big hazle :)


If it is an application with a form, I think it will only run if there is a user logged into the server. On server, most of the times there is no user logged in.

Applications that do stuff on the background or on a server should be coded as services.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜