SPONSORS:






User Tag List

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

    How can i change my working directory ?

    When i launch a command prompt from Silktest it launched my command prompt from where Silktest has been started.

    I want to change the working directory of Silktest. How can we change that ?

    I can only use SYS_execute .

  2. #2
    Member
    Join Date
    Nov 2004
    Location
    SilkLand
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How can i change my working directory ?

    SYS_EXECUTE ("cmd.exe /k cd c:\temp")
    will open c:\temp folder

  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 can i change my working directory ?

    I want to change from the directory and then execute a batch file. Let say my batch file is in c:\temp\my_batchFile_bat.
    An i launch my Silktestproject from C:\silktest\silktest.vtp .

    If i do :
    SYS_EXECUTE ("cmd.exe /k cd c:\temp")
    SYS_EXECUTE ("my_batchFile_bat")
    It does not work for me!!


    What could be the fix ?

  4. #4
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How can i change my working directory ?

    Use SYS_SetDir (sDir)

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

    Re: How can i change my working directory ?

    Good stuff davidgenrich. It works now !

 

 

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 02:29 AM.

Copyright BetaSoft Inc.