473,419 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Can a Windows Service run a visual basic script?

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

Mar 25 '08 #1
2 1570
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" <Da***@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.com...
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
Mar 25 '08 #2
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" <Da***@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.com...
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

Mar 26 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: raghavendra | last post by:
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2....
18
by: jayderk | last post by:
a customer was trying to install some of our software after they installed the windows XP service pack 2 and he is getting a message that says something about it not being compatable with windows...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
4
by: Bob | last post by:
Hello, I am trying to find out which version of VB .NET we need to buy in order to create Windows (NT) Service as shown in this helpful article http://www.developerfusion.com/show/3441/1
6
by: Jason Richmeier | last post by:
I have encountered a problem with the installation of a Windows service. I know I have done this in the past so I am at a loss as to what I might be doing wrong. When I create a setup project...
1
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am reviewing Windows service programming. I'm running VS2005 and programming in VB. I've just found an example in Support: 'How to create a Setup project for a Windows Service in Visual Basic...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.