File Formats?!

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

User avatar
CWBillow
Posts: 105
Joined: Thu Nov 06, 2003 11:59 pm
Location: Chula Vista California
Contact:

Post by CWBillow »

ben_josephs wrote:Have you asked Acronis?
Yea, and, at least the ones on the boards, don't know why. They know it's there, 'cause they're the ones that clued me in, but other than that, no.

Regards,
Chuck Billow
Tony Browne
Posts: 3
Joined: Wed Dec 05, 2007 9:36 pm

Post by Tony Browne »

ben_josephs wrote:If this is indeed the problem, the solution is simply to save the file in PC format:
File | Save As... | File format: PC.
Understood.
Now, how how can I set TextPad so that it always saves in PC mode? Using one-at-a-time Save-As will take me a very long time on the one thousand files which I have to convert.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

You can tell TextPad to save new files in PC format, either all of them or just those in particular classes:
Configure | Preferences | Document Classes | <Class> | Create new file as: PC.

But it will always save existing files with the line endings they already have, unless you explicitly tell it not to do so in each case.

Your best way to deal with this may be to convert the files on the command line using such a utility as unix2dos.
Tony Browne
Posts: 3
Joined: Wed Dec 05, 2007 9:36 pm

Post by Tony Browne »

ben_josephs wrote:Your best way to deal with this may be to convert the files on the command line using such a utility as unix2dos.
Any suggestions for a suitable Windows utility?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Well, Googling unix2dos windows brings up 48 000 results, many of which are for tools that run on Windows.

I use the Cygwin package (http://www.cygwin.com/). Apart from a Linux-like programming environment, this provides a bash shell and most Linux command-line tools, including unix2dos. You can use the tools from a Windows or Windows-like command line as well as from bash.

But there are plenty of stand-alone tools. This one is right at the top of the list I get, and looks as good as any:
http://www.freedownloadscenter.com/Util ... X2DOS.html.
This is not a recommendation. You must choose one yourself.
Post Reply