I’m writing a fairly simply script and I’m trying to upload a file to an ftp server. I’m using the following command
ftp -n -s:upload.txt 292.78.51.12 (I’ve faked the IP)
It works perfectly in command prompt but it seems to have a problem with it in powershell.
I’ve tried giving the absolute path to upload.txt, put .\ before it and nothing seems to work.
Any idea what I’m doing wrong?
You need to put quotes around “-s:upload.txt”. I believe it has something to do with the colon in the option. If anyone could clarify why that would be great.