SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Dec 2000
    Location
    Pune, India
    Posts
    135
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to test if a WindowsNT Service is running using SilkTest

    Is there any way to test if a WindowsNT Service is running or stoped using SilkTest?

    ------------------

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Location
    NC, United States
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    just a suggestion...a long shot though.
    there is a MSDOS command 'winmsd'[please search on web for its use syntax and options] which can export the computer information including services to a .txt or .csv[recommended-makes life easy] file. You have to further work on file to extract only the services section and further to find specific service and status.

    ------------------
    -gram
    -gram

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    I have a dll that will give you service status, but the forum only allows a 50k attachment. The zip file is 139k. If you want me to email it to you I can do that.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    D J Can U send it to me too? Also, if possible some information on how it works how to install and instructions to use it.

    JaiminiBhatt2@netscape.net
    JaiminiBhatt@yahoo.com

    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

  5. #5
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    LIST OF STRING lsServices

    SYS_Execute("net start",lsServices)

    print(lsServices)

    will give you a list of running services

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  6. #6
    USB
    USB is offline
    Junior Member
    Join Date
    Dec 2001
    Location
    waltham, MA, USA
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    You could use GetRegistryvalue() as every service has the registry value under Services in the registry.
    In general if the service is started the value will be 1, if it stopped the value will be 2.
    The name of the field is start under this service folder.
    Good luck..
    --Seshu

  7. #7
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    I thought USB's idea is good. But the 'Start' field under 'Service Name' in the Registry doesn't change the value after starting and/or stopping the Services (at least for me on XP Pro).

    TonyM's idea should work. I tried it manually.

    ------------------
    DJ

    [This message has been edited by djava (edited 03-27-2003).]
    DJ

  8. #8
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to test if a WindowsNT Service is running using SilkTest

    If you know what service you want to test for, then using TonyM's idea but include the service name...

    For example:

    SYS_Execute('net start "Workstation"',lsServices)

    If the service is running, then lsServices will contain - "The requested service has already been started."

    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:05 AM.

Copyright BetaSoft Inc.