SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Germany, Lingen
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to disconnect Network drives?

    Hello!
    does anybody know how i can disconnect Existing Networkdroves via Testcomplete?

    for example i want to disconnect Drive R:

    thanks in advance for every reply!
    Best regards,

    Johannes Moebius

    Note: every post contains personal oppinions which are not coactive representing the oppinion of the ROSEN Group

    ===============================================
    Using: Testcomplete V 9.20.2460.7 - Jscript
    ===============================================

  2. #2
    Senior Member
    Join Date
    May 2004
    Posts
    1,196
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to disconnect Network drives?

    Hello Johannes,

    You can disconnect a network drive by executing the following command line from TestComplete:

    <font class="small">Code:</font><hr /><pre>net use r: /delete</pre><hr />

    Here is how this can be done from script:
    <font class="small">Code:</font><hr /><pre>
    var WSHShell = new ActiveXObject("WScript.Shell");
    WSHShell.Run("net use r: /delete");
    </pre><hr />

    Details are here:
    http://support.microsoft.com/kb/308582
    Best regards,
    David - SmartBear Support

  3. #3
    Member
    Join Date
    Mar 2009
    Location
    Germany, Lingen
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to disconnect Network drives?

    thanks for your fast answer! it worked very well!
    Best regards,

    Johannes Moebius

    Note: every post contains personal oppinions which are not coactive representing the oppinion of the ROSEN Group

    ===============================================
    Using: Testcomplete V 9.20.2460.7 - Jscript
    ===============================================

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:47 AM.

Copyright BetaSoft Inc.