the directory in which to download pictures/videos. Of course, the username and password file would have to be readable by the person running the batch file.Anyone with a little knowledge or experienc… The method I will be using is very simple, but unfortunately it is not fool proof. Password Protected File Using Batch Files: Today, I will be showing you how to make a password protected file that is created and accessed using a Batch (.bat) file.Can anyone suggest me how to mention 'username' and 'password' to login remote server in batch file please. ftp 'servername' /U 'username' /p 'password'. I am new to write batch script (*.bat).