I have a PHP script which runs on our website and echos a bunch of content to the browser, each line has a unique ID. I installed GnuWin32 and wrote a small BAT script to download this content to a TXT file which is working fine, however when viewed in Notepad it has lost the line breaks.
I have tried appending "\r\n" and "\n" to the echo string in the PHP script but still have this issue. Can anyone please point out where my mistake is?
@echo off setlocal set TARGET=website.com/report_file.php wget -O ServerID.txt -p %TARGET% endlocal