ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

STRPCCMD and a PC batch file

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

  • #16
    Re: STRPCCMD and a PC batch file

    Scott,
    I added the CD to the batch file

    CD C:\Crap\clnmbr
    ftp -sownload.txt>ftpout.txt

    and what I got was puzzling, see the attachment...
    Attached Files
    Everyday's a school day, what grade are you in?

    Comment


    • #17
      Re: STRPCCMD and a PC batch file

      I haven't used STRPCCMD in a long time, maybe it ran successfully?

      Comment


      • #18
        Re: STRPCCMD and a PC batch file

        Scott,
        No, I checked the C:crap/clnmbr folder and it was empty.

        Red
        Everyday's a school day, what grade are you in?

        Comment


        • #19
          Re: STRPCCMD and a PC batch file

          At this point you are debugging you batch file so try just running it from the Command Prompt. I haven't done a lot with batch files in a long time so I might not be too helpful with that. Hopefully when you run it manually on the PC you will be able to tell what is happening. Maybe the ftp command isn't correct and it isn't finding anything.

          Comment


          • #20
            Re: STRPCCMD and a PC batch file

            ftp -s:C:/CRAP/CLNMBR/DOWNLOAD.TXT > C:/CRAP/CLNMBR/FTPOUT.TXT
            Philippe

            Comment


            • #21
              Re: STRPCCMD and a PC batch file

              Mercury's reply gave me a clue so after a little experimentation, got it to work as envisioned.

              Thanks all for your support,
              Red.
              Everyday's a school day, what grade are you in?

              Comment

              Working...
              X