Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I automatically convert a UNIX file to Window/DOS, e.g., from a batch file?

0
10 Posted

Can I automatically convert a UNIX file to Window/DOS, e.g., from a batch file?

0
10

Yes. You can convert a UNIX file with just Line-Feed characters to a Windows/DOS file with Carriage-Return and Line-Feed characters by selecting {BLOCK, Convert newlines, UNIX to DOS}. You can automate the conversion with the command: vpw -n3 -x convert.vdm filename where ‘filename’ is the name of the file to be converted. The “-n3” is a special code to the convert.vdm macro which tells it to automatically perform the third item in its menu, i.e., “[3] UNIX to DOS LF to CR+LF”. Similarly “-n1” can be used to convert a file from Window/DOS to UNIX. The comments at the beginning of convert.vdm describe how to also convert between fixed-length records and “Newlines”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123