SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2008
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to get registry key from Silktest ?

    Hi all,

    At the moment i am doing something like this to get registry key from a ms prompt :
    <font class="small">Code:</font><hr /><pre>

    [ ] list of string lsOutput = {}
    [ ] String regArtixWCF = "HKLM\SOFTWARE\IONA\Artix Connect For WCF\Visual Studio Adapter"
    [ ] String cmd = 'start cmd /K' + "'" + 'reg query "{regArtixWCF}" /v InstallDir ' + "'"
    [ ] SYS_Execute(cmd, lsOutput)
    </pre><hr />
    lsOuput is empty.

    Does Silktest provide any API to do that automatically ? How can i use SYS_Execute to get the result of the command "reg query" ?

    Cheers,

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get registry key from Silktest ?

    Hi,

    Read about SilkTest Registry functions in SilkTest help. type in "registry" in Index field and you will get all the info you need.

    Please: "Help" should be the first place for "HELP".

    Thanks,
    SMP

  3. #3
    Member
    Join Date
    Feb 2008
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get registry key from Silktest ?

    Hi yes i fount it. For example :
    <font class="small">Code:</font><hr /><pre>

    [ ] String sScrnSaverRegPath = "SOFTWARE\blah"
    [ ] String sScrnSaverItem = "InstallDir"
    [ ] INTEGER iKey = HKEY_LOCAL_MACHINE
    [ ] STRING sReg = SYS_GetRegistryValue(iKey, sScrnSaverRegPath, sScrnSaverItem)
    [ ] print(sReg)
    </pre><hr />

 

 

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 11.54%
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 11:48 AM.

Copyright BetaSoft Inc.