Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When running the ftp executable for Windows via a PROCESS START request, why aren I getting the remote server responses in stdout?

0
Posted

When running the ftp executable for Windows via a PROCESS START request, why aren I getting the remote server responses in stdout?

0

When using the PROCESS service to run command “ftp -s:C:/temp/stdin.txt” on a Windows machine, where C:/temp/stdin.txt is a text file that contains the FTP commands to run after FTP starts, if you don’t specify the SAMECONSOLE option (e.g. if you use the NEWCONSOLE option which is the default),, the remote server responses are not written to stdout. However, if you can specify the -v option for the ftp executable when using new console, then the remote server response are written to stdout. For example: “ftp -v -s:C:/temp/stdin.txt”. When you specify the SAMECONSOLE option, the remote server responses are written to stdout when you don’t use the -v option for the ftp executable. For example, say file C:\temp\stdin.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123