SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2001
    Location
    Bedford, MA, USA
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SYS_Execute does not support DOS command extensions?

    It appears as though SYS_Execute() does not enable DOS command extentions. Case in point: If cmd extensions are enabled on your system, the MKDIR command, issued in a DOS window will create any intermediate directory in the given path. But MKDIR issued via SYS_Execute() will not. It will only create one directory at a time. This is the behavior of MKDIR if cmd extentions are turned off.
    Can anyone confirm this, or better yet, tell me how to enable command extensions in SYS_Execute()?

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

    Re: SYS_Execute does not support DOS command extensions?

    I am not sure about the specific problem with SYS_Execute and the DOS Command extenstions. However, it it is just a list of DOS commands you want to execute, then the following function can do that.

    Just pass it a list of commands, it opens a CMD.COM window, executes each command, and then closes the window.

    ------------------
    David Genrich
    david@e2Open.com
    david_kim@usa.net

    [This message has been edited by davidgenrich (edited 10-08-2001).]

  3. #3
    Member
    Join Date
    Jun 2001
    Location
    Bedford, MA, USA
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute does not support DOS command extensions?

    David,
    Your solution would work, but I'm using SilkTest to do API testing, so I'd rather keep things non-GUI. Right now the testcases are all non-GUI which has the benefit of allowing one to use their workstation while testing is in progress.
    Thank You for the suggestion.
    Jim

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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute does not support DOS command extensions?

    Jim,
    In short, I don't think it's possible to use SYS_Execute with DOS command extensions. Good enhancement request, though.

    However, if all you want to do is create a directory tree, you can download a function <a href=http://www.ameliortech.com/stuff/toolkits/ST/st_file.htm>here</a> that should do the trick for you.

    I hope this helps.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Location
    NY,NY,USA
    Posts
    103
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute does not support DOS command extensions?

    Why not create a .bat file w/the filewrite function, then execute the .bat file via the sys_execute command

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

  6. #6
    Member
    Join Date
    Feb 2001
    Location
    New York, NY
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_Execute does not support DOS command extensions?

    Here is the working code
    int retval = SYS_Execute("start c:\test.bat")
    or
    int iReturn = SYS_Execute ( "start sh c:/test.ksh" )

    sh is a korn shell for NT


    ------------------
    -Lev Aks
    lev_aks@in-nyc.com

    [This message has been edited by levaks (edited 10-09-2001).]

 

 

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 10:56 AM.

Copyright BetaSoft Inc.