>Hi Koen..
>
>mwebpath is different for most of the PC's, depending on how their drive mapping is set up, which I can't change, so it has to be a variable, and not hard coded. To answer your question, it will be something like "v:\", etc.
>
>On there server that houses the web files, the files are open all the time in multiple instances of a web app. I don't want them left open in multiple instances over the network over a long period by a desktop app that posts to them maybe a few times a day, and for very short periods, so I open them, post stuff to them quickly, and close them again.
Then perhaps a better question would be why do you keep the app open? Have it run on task scheduler, every hour or whenever you say, check whether there's anything to do, quit.