PC Review


Reply
Thread Tools Rate Thread

Can a Windows Service run a visual basic script?

 
 
David
Guest
Posts: n/a
 
      25th Mar 2008
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

 
Reply With Quote
 
 
 
 
Henning Krause [MVP - Exchange]
Guest
Posts: n/a
 
      25th Mar 2008
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

"David" <(E-Mail Removed)> wrote in message
news:5C320987-8BED-479A-931B-(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
David
Guest
Posts: n/a
 
      26th Mar 2008
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

"Henning Krause [MVP - Exchange]" wrote:

> 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
>
> "David" <(E-Mail Removed)> wrote in message
> news:5C320987-8BED-479A-931B-(E-Mail Removed)...
> > 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
> >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing visual basic script angelmoreno Microsoft Windows 2000 2 11th Dec 2006 07:57 AM
Visual Basic Script and Visual Basic 6 Code difference? =?Utf-8?B?Qmx1ZVVua25vd24=?= Microsoft Access VBA Modules 0 7th Oct 2005 01:58 PM
Convert MDE to MDB using Visual Basic or Script ddomanilatgmaildotcom Microsoft Access 1 6th Oct 2005 11:12 PM
Run Visual Basic Script in .NET =?Utf-8?B?c3Blcm90dGk=?= Microsoft Dot NET 2 12th May 2005 02:41 PM
How to use a script into a visual basic .net program ??? Fabrizio Cyber Microsoft VB .NET 8 29th Oct 2003 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:42 PM.