Why cmd CD is not right in REXX

  • walv

    walv - 2006-02-19


    I have installed Regina on my PC (WIN XP SP2) and I try to send "CD c:\repnew" and next "DIR". I execute this REXX script from c:\repold and I obtain the list of directory repold not repnew.

    I am stopped by this problem and I am sure that is possible, but I don't know how to do.

    Sorry for my english.
    Thanks for your help.

    • Mark V

      Mark V - 2006-02-19

      Regina 3.3, W2K

      How about,
      "DIR c:\repnew"
      ADDRESS SYSTEM "DIR c:\repnew"
      (or use SysFileTree()  (frm rexxutil.dll)

      See also:  DIRECTORY()  and CHDIR()
      for changing Regina's environment current directory first.

      Your "CD" command is not applied to the environment of the separate "DIR" command.

      ADDRESS SYSTEM "CD /d c:\repnew & DIR'
      is another way.


    • walv

      walv - 2006-02-20

      Thank you HTH, thank you very much. You have solved my problem with the built-in functions and I have learned the "operator" & to chain the command in the same ADDRESS SYSTEM.

      Thanks again.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks