Use CMAC to open up files in a directory question.

Product Compare Forums Multi-Edit Support Use CMAC to open up files in a directory question.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2944
    MewUser
    Participant

    I have a CMAC script which performs an action on a file.
    I would like to be able to use this script on multiple files in a directory.

    For example, directory A contains 50 files, and I want to use my script in a for/while loop until all files in directory A have had the script run on them.

    Does such a function exist for this purpose, or if not, has anyone experienced this issue, and if yes, how was it resolved?

    Thank you.

    #9516
    Clay Martin
    Keymaster

    Hi,
    If you look through the cmac source files having to do with multi-file searches, you should be able to find a call to a windows utility that on the first call opens a directory then on subsequent calls returns a file name per call stepping through all the files in the directory. Sorry I can’t remember the utility name.

    Clay

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.