SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to start Window Service using WR

    Hi,

    1.How to start windows sevice using WR. Example?
    2.How to check whether the files are moved from one folder to another when the service is started?

    Thanks in advance...

    Regards,
    Phani

  2. #2
    Moderator
    Join Date
    Mar 2000
    Location
    Orange County, CA
    Posts
    3,187
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to start Window Service using WR *DELETED* *DELETED* *DELETED*

    Post deleted by Tony Davis
    Insanity: doing the same thing over and over again and expecting different results

  3. #3
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to start Window Service using WR

    [ QUOTE ]
    1.How to start windows sevice using WR. Example?

    [/ QUOTE ]

    <font class="small">Code:</font><hr /><pre>
    Service_Name = "Alerter";
    dos_system("net start \"" &amp; Service_Name &amp; "\"");
    </pre><hr />

    [ QUOTE ]
    2.How to check whether the files are moved from one folder to another when the service is started?

    [/ QUOTE ]

    <font class="small">Code:</font><hr /><pre>
    function file_exists(in file)
    {
    auto rc = file_open(file,FO_MODE_READ);
    if(rc == E_OK)
    file_close(file);
    return rc;
    }


    static Files[] = {"File1.txt", "File2.log","setup.exe"};
    New_Location = "C:\\NewLocation\\";
    for(iterator in Files)
    {
    if(file_exists(New_Location &amp; Files[iterator]) == E_OK)
    tl_step("Test \"" &amp; Files[iterator] &amp; "\" moved",PASS,"File Exists in new location");
    else
    tl_step("Test \"" &amp; Files[iterator] &amp; "\" moved",FAIL,"File doesn't Exists in new location");
    }
    </pre><hr />

  4. #4
    Junior Member
    Join Date
    Jun 2006
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to start Window Service using WR

    Thank u so much...

    Regards,
    Phanikumar

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 03:09 PM.

Copyright BetaSoft Inc.