Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Problems With App As Windows Service
kvarnerexpress
post Nov 16 2005, 08:40 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



So I have this little program that has a server side and a client side. Basically, the client side just connects to the server, and then closes. The server, when it gets a request, runs through a script that maps a couple drives, deletes old files, then copies a new one, then disconnects the drives and writes a log.

When I run this as a normal application, it works fine. I found a tutorial on making it a service, and it shows up and everything, but it doesnt do anything. All the permissions are right, so I don't have a clue what the deal is.

Does anyone know an easy way to make a program act as a service in vb 6?
__________________

Go to the top of the page
 
+Quote Post
sharpz
post Nov 16 2005, 11:46 PM
Post #2


Member [Level 1]
****

Group: Members
Posts: 67
Joined: 16-November 05
Member No.: 14,373



i dont think VB programs can be directly run as a service, what you could do instead is just add it to the registry under startup ( HKCU > Software > Microsoft > Windows > current version > run ) and it will startup and run fine
Go to the top of the page
 
+Quote Post
Inspiron
post Nov 17 2005, 04:47 AM
Post #3


Trap Grand Marshal Member
***********

Group: Members
Posts: 1,203
Joined: 25-March 05
Member No.: 4,883



If you just want to run your application on startup, an alternative is to place it's shortcut in "C:\Documents and Settings\%USERNAME%\Start Menu\Programs\Startup".

The application will simply start when you login to Windows.
Go to the top of the page
 
+Quote Post
sharpz
post Nov 17 2005, 05:39 AM
Post #4


Member [Level 1]
****

Group: Members
Posts: 67
Joined: 16-November 05
Member No.: 14,373



oh also, if you want it to start up for all users, not just the current logged in user, you have to add the app to
CODE
Hkey_Local_Machine > software > microsoft > windows > current version > run

if you want it to run only once, add to
CODE
Hkey_Local_Machine > software > microsoft > windows > current version > runonce

hope this helps.
Go to the top of the page
 
+Quote Post
Galahad
post Nov 22 2005, 11:08 AM
Post #5


Neurotical Squirrel
*********

Group: [HOSTED]
Posts: 590
Joined: 4-November 04
From: Novi Sad, Vojvodina
Member No.: 2,127



Hi all,

Yes,those are very good solutions to automaticaly start an application,but what happens when that machine is not used by regular users,for example,it runs as a server,and never gets past the login screen.I thin windows doesn't process startup part of registry at this point,but waits for you to login.In this case,application wouldn't start.

I wanted to try making my own service app,but never got around,so I can't be of any big help.What I can do,is tell you where you maybe should focus your attention.Maybe there is another way that services run,I do believe you need Sub Main,or something similar.Some extra piece of code that needs to be moved or so.If I get around to making application that runs as a service,I'll notify you on results.

Cheers
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Favorite Or Best Email Service(65)
  2. No #1 Mail ?(9)
  3. Starting A Free Public E-mail Service(8)
  4. Windows XP Start Menu, adding folders to the right had side(2)
  5. I Would Like To Tell You About Free Web Hosting Service I Use Now.(21)
  6. Change 'open With' In Regedit(9)
  7. Linux Ubuntu Vs Windows Vista(4)
  8. Top 10 Things To Look Forward To In Windows 7(8)
  9. After 18 Years Windows 3.1 Is Officially Retired(14)
  10. Dell Computer Problems Need Help.(9)
  11. Razr Problems(22)
  12. Windows 7(21)
  13. Trap17 Is Amazing Hosting Service(31)
  14. Windows Xp(7)
  15. 7 Lessons Windows 7 Can Learn From Os X(3)
  1. Ear Problems?(3)
  2. Google Web Accelerator(18)
  3. How To Change The Windows Xp Shell.(20)
  4. "windows Live Spaces", The Next Big Social Network?(5)
  5. Connecting To Windows Xp Printer Via Leopard(4)
  6. Guy Problems(37)
  7. 700 Windows Xp Wallpapers(32)
  8. Big Problems With Computinghost(3)
  9. A Lot Of Problems(10)
  10. The Renegade Is Loose.(2)
  11. Cheap Domain Service(4)
  12. Nokia 6600 Virus Problems(15)
  13. Keyboards Not Functioning When Windows Boots(2)
  14. Firefox Problems theme or addon diabled(3)
  15. Make Your Own File Uploading Service.(39)


 



- Lo-Fi Version Time is now: 1st December 2008 - 04:35 PM