Can a Windows Service run a visual basic script?

D

David

Hello

I'm trying to develop a Windows service, in visual studio 2005, which
executes a visual basic script. However, if the script interacts with the
file system (as it has to), the script appears to run but doesn't do what it
should do (like move files from one folder to another.

We really don't want to have to rewrite the script, which uploads content to
a web site. However, we want to write a service that watches a folder and
triggers the script once any export files arrive.

Thanks
 
H

Henning Krause [MVP - Exchange]

Hello,

which user account do you use for the service? Does the service account has
the necessary permissions to the directory in question?

Kind regards,
Henning Krause
 
D

David

I am pretty sure there is enough permissions. It's using the local system
account. I've now amended the service so it performs 2 tasks:-

moves 3 files from one folder to another by executing a vb script
moves a single file from one folder to another using c# code

The file moved by c# code is successful but the script doesn't move it's
files. Obviously I've tested and the script works by executing it manually.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top