Question Locked

Convert LF to CRLF in a batch process

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to modify a file to convert LF (EOL) to CRLF in an automated batch process on a Windows platform. Does anyone know how to do this?

5 replies

by robo_dev

A batch file?
A VB script?

Where are you converting the data?

In a file?
In a database?
As it's being sent to a printer?

by leiseman

In an automated batch process on Windows 2003, I need to convert an ascii file that has EOL marked by LF to CRLF.

Update: I have found a way to do this using a Perl command.

by dr dij

write a vb prog and do this easily.
a script would execute it.

you could also create a batch file, called via any script (create with vi or notepad) that would FTP the file to a unix box in binary and send back in ascii, which would add the CR to any LFs.

This discussion is closed to new replies.