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?