SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute in Silk 5.5 SP3 problem with current directory

    try using SYS_SetDir() before sys_execute, that might help

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

  2. #2
    Vic
    Vic is offline
    Junior Member
    Join Date
    Apr 2001
    Location
    San Francisco, CA 9416
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute in Silk 5.5 SP3 problem with current directory

    Already done that; didn't help. Once it get to SYS_Execute, it default back to the \\View\* again to execute the batch file.

    Anymore suggestion. My only other option is to modify the SYS_Execute() function itself which i rather not do and have not put much thought into it.



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

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute in Silk 5.5 SP3 problem with current directory

    if you already know the path of that file then you can do sys_execute('c:\xyx\x1\x2\x3\mybatch.bat')

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

  4. #4
    Vic
    Vic is offline
    Junior Member
    Join Date
    Apr 2001
    Location
    San Francisco, CA 9416
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SYS_Execute in Silk 5.5 SP3 problem with current directory

    Hello,
    I'm sure many of you are aware that in SP3, SYS_Execute uses the directory where the script is executed from as the current directory.
    My Problem: My scripts are using a view created using clearcase and when SYS_Execute runs a batch file, it returns error that UNC path is not supported.

    Question: Is there a way i can force SYS_Execute to use a different current directory when executing a batch file.
    Note: Other functions that try to set the current directory prior to the SYS_Execute does not work, either.

    thanks for any hint

  5. #5
    Vic
    Vic is offline
    Junior Member
    Join Date
    Apr 2001
    Location
    San Francisco, CA 9416
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute in Silk 5.5 SP3 problem with current directory

    The problem is not with Executing the Batch File. I have no problem with that.
    My problem is that SYS_Execute initiate the command session at \\view\scripts instead of the default %systemdrive% like C:
    Since Dos 5.0 on Win2k does not support UNC path, it spit back some errors.

    thanks,
    Vic

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

  6. #6
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute in Silk 5.5 SP3 problem with current directory

    Another way to do it would to create a shortcut and put in a root folder. Call it "dosrun" for example. Change the short cut's "start in:" property to point where you need it, then use a Sys_Execute("c:\dosrun") or a direct call to Windows/Run with a TypeKeys("c:\dosrun") to run it. (A little more code'll be need to do the latter.)

    Use paste - Typekeys("alt-ep") - to place command text within the DOS window. Note the Silk 5.5 SP1 will terminate the DOS session rather ungracefully if you attempt a more -normal MenuItem("Edit").MenuItem("Paste").Pick() sequence.


    John


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

  7. #7
    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: SYS_Execute in Silk 5.5 SP3 problem with current directory

    Can you use something other than SYS_Execute()? Maybe something like Start().

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

 

 

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 09:22 PM.

Copyright BetaSoft Inc.