Results 1 to 6 of 6

Thread: How to create a NT service?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    NZ
    Posts
    6
    Hi

    I am new to VB. Is it possible to create a service by using VB?. If it is possible, how can I make it? I would appreciate if u guys can give an idea how to create it or any web link to read it.

    Cheers
    Alex

  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    What do you want it to do?

    André

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    NZ
    Posts
    6

    re: How to create a NT service?


    I am getting some data in a txt format from users and it will be save in a folder. I am running AT command to process those data every 30 min. What I like to do is...I want to run a service to process the data immediately after a user submit the data.

    Cheers

  4. #4
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    How is your text file posted?
    From a program?

    André

  5. #5
    Addicted Member Rudy's Avatar
    Join Date
    Sep 2000
    Location
    BC, Canada
    Posts
    198
    if im right you can create a service with about any exe, im not sure but i think it might be only in windows 2k though
    *Rudy^
    Visual Studio 6 Ent. SP5
    Windows 2000 SP4
    Windows XP SP1a

  6. #6
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Ok, you can,
    I just wanted some more details, but let me give you some tips:

    First, you want to check a folder for a text file.
    You just make an exe that Dirs the folder every minute with a timer. If there is a file you launch your actions for that file. If ther is nothing your exe waits a minute and tries again. (of course it could be every second if you want).

    Once you have the exe you go to settings and open Scheduled tasks, from there you choose new task and point to your exe and when you want it to run. Perhaps here, every time you logon, because the exe will run continuosly.

    I hope this helps,

    Good luck,

    André


    PS. If you can't find the scheduled Tasks icon might be because the service is not started. You must then goto services and start it!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width