> [...] To do this in batch mode, I created a text file pwd.txt with the > password in it. [...] Sounds doomed to me. You can have _commands_ in a batch file, but a password is not a command. The first "S" in SSH and its friends (like SCP and SFTP) stands for "Secure". These programs were designed to be _secure_. Storing a password in a file is usually not secure, and these programs are not designed to let you do it easily. The usual method to permit non-interactive operation is to set up public keys, thus eliminating any password entry problems. > [actual commands] > I have checked [...] > Other version info: On the bright side, reading such a complete problem description is a rare treat.