473,407 Members | 2,359 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,407 software developers and data experts.

how to stop the internet service using VB code

AR Ratheesh
Dear all,
I am in a Internet cafe administration project using Access.I really dont know,how stop the service when the scheduled time ends. Please give me a suggestion....
Sep 22 '09 #1

✓ answered by NeoPa

As far as stopping services goes, Access has a facility to run external commands (Shell()).

As far as actually stopping a service goes (This is actually a Windows question but hey) the command and syntax is :
Expand|Select|Wrap|Line Numbers
  1. NET STOP {ServiceName}
If you look in the Services applet you can see both the long names, and the shorter names, of each service. This command will take either.

As Stewart says, we can't do this for you, but I can give you the tools as you've asked, and I can understand from your latest post what you're after I think.

4 2533
NeoPa
32,556 Expert Mod 16PB
Please try to explain your question and situation better.

I'm afraid this is very little to work with.
Sep 22 '09 #2
Actually i Have 2 tables one Login table and other administration table.The remote system will be running the mdb always.if the user logins and give pay 2$.then the accout creates.the form will load.and decreases the minutes and balance in their account simulteneousely.when the min.balance reached,it will stops the service.
i think u got more clarity,
thank you for ur cooperation.
Sep 22 '09 #3
Stewart Ross
2,545 Expert Mod 2GB
Sorry, but there is still nothing in your question we can help you with. Giving us what looks like a part of a class homework assignment does not help us to help you.

If you have a specific technical query please post it, giving us details of the tables, forms, fields etc concerned.

As NeoPa will tell you himself, we cannot design your application for you. Nor can we answer questions which are so broad in scope that we may as well just guess at their meaning...

Stewart
Sep 22 '09 #4
NeoPa
32,556 Expert Mod 16PB
As far as stopping services goes, Access has a facility to run external commands (Shell()).

As far as actually stopping a service goes (This is actually a Windows question but hey) the command and syntax is :
Expand|Select|Wrap|Line Numbers
  1. NET STOP {ServiceName}
If you look in the Services applet you can see both the long names, and the shorter names, of each service. This command will take either.

As Stewart says, we can't do this for you, but I can give you the tools as you've asked, and I can understand from your latest post what you're after I think.
Sep 22 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Niel | last post by:
Hello friends, I think this issue has been posted before but i have not been able to get any solution that is why i am posting it again in detail as to what exactly is happneing in my case. Hope...
2
by: Jabba | last post by:
Hello, I've written a (quite complicated) windows service using C# , starting from a wizzard generated project.Added custom installers, installs and run just fine, does all the work it's supposed...
6
by: Jacobus Terhorst | last post by:
Using C#: I tried: ServiceController me = new ServiceController(this.ServiceName); me.Stop(); it raises an exception: Cannot find Service I also tried:
7
by: Timo Haberkern | last post by:
Hi there, i have some troubles with my TSearch2 Installation. I have done this installation as described in http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_compound_words...
40
by: Mark G. Meyers | last post by:
http://www.savetheinternet.com There is more info and A PETITION at moveon... Easy to sign and give your two cents (and to your own reps in the process)....
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
0
by: Emanuele | last post by:
I have write a program using MS Visual studio C++ 7.0 (platform Windows XP professional). I'm not using .NET. This program save data in a SQL server 2000 database using ADO. Everything works...
0
by: mattcfisher | last post by:
Hi, I have two windows services running together. One is the main program, and one is an "updater" wrapper for the main. The updater service starts and stops the main one (as in you should never...
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.