ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

MPUT multiple IFS files to Windows server-IFS folder has spaces in name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MPUT multiple IFS files to Windows server-IFS folder has spaces in name

    Hi.

    I am trying to FTP multiple files from an IFS folder to a windows server. I am using MPUT to send the files, but I need to change to the source directory on the IFS first. LCD and CD are not working. This folder on the IFS contains spaces in the name. It looks like this
    /siemens/fake facility name/0001/production/ec

    What command would I use to
    1) See what files are contained in this folder
    2) Change directorys to this folder
    3) and finally to put All the files from this IFS folder to the WIndows Server folder

    Thanks in advance for any help you can give me.

  • #2
    Re: MPUT multiple IFS files to Windows server-IFS folder has spaces in name

    LCD /siemens/

    I think the spaces will be a problem ... can you rename?

    try issuing NAMEFMT 1 to switch to IFS

    then just: MPUT /siemens/fake_Facility_name/0001/production/ec/*.* /server/folder
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: MPUT multiple IFS files to Windows server-IFS folder has spaces in name

      Thanks Jamie.

      I cannot rename those folders, as they are production.

      Perhaps a CL on the iSeries that would make a copy someplace that didn't have spaces, and then FTP from there?

      Thanks again for your help.



      Originally posted by jamief View Post
      LCD /siemens/

      I think the spaces will be a problem ... can you rename?

      try issuing NAMEFMT 1 to switch to IFS

      then just: MPUT /siemens/fake_Facility_name/0001/production/ec/*.* /server/folder

      Comment


      • #4
        Re: MPUT multiple IFS files to Windows server-IFS folder has spaces in name

        I have no problem running this FTP statement:
        Code:
        > lcd "/home/toml/my spaces"
          Local working directory is /home/toml/my spaces
        Tom

        There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

        Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

        Comment


        • #5
          Re: MPUT multiple IFS files to Windows server-IFS folder has spaces in name

          drat those double quotes.... works here too.
          Code:
          lcd "/jamie/a big space between"
          Thanks for the help. Merry Christmas!!
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: MPUT multiple IFS files to Windows server-IFS folder has spaces in name

            GREAT!!!

            Thanks for all your help!

            You both are on Santa's good list!

            Comment

            Working...
            X