Re: Editing batch files
Internal editor works only with Windows style line endings. So WinSCP always converts the remote file before it opens it in the internal editor (an coverts it back when upliding the file back). Problem is that WinSCP does not expect presence of text files in different formats on remote server.
So unfortunatelly to solve your problem you need to use external editor that supports both unix and windows style text files and make sure you use binary transfer mode when downloading to/uploading from the editor. See Editing binary files.
About editor: I use integrated editor of my favourite file manager (FAR). However I believe that you won't have problem finding some (try PSPad.com and UltraEdit.com).
So unfortunatelly to solve your problem you need to use external editor that supports both unix and windows style text files and make sure you use binary transfer mode when downloading to/uploading from the editor. See Editing binary files.
About editor: I use integrated editor of my favourite file manager (FAR). However I believe that you won't have problem finding some (try PSPad.com and UltraEdit.com).