Home
Name Modified Size InfoDownloads / Week
unix2win.jar 2012-04-26 3.1 kB
README.txt 2012-04-22 1.3 kB
Totals: 2 Items   4.4 kB 0
README.TXT

The basic way to use this program is this:

Suppose you have a file called file1, which was created under
unix, so when you try to read it in windows it's a mess. Copy unix2win.jar to the same
directory where file1 is, open the windows console and type:

 java -jar unix2win.jar file1 file2.txt


this will create a file called file2.txt with the very same content of file1, but
readable with windows notepad.

Another way to use this program is creating a special directory, copying
unix2win.jar there, and creating a batch file. Add this directory to the
PATH variable. When this is done you can use the program without specifying
the directory where it lies.

You may copy and edit this text to create your batch file. It worked for me:

   @set file1=%1%
   @set file2=%2%
   @java -jar "C:\Program Files\unix2win\unix2win.jar" %file1% %file2%
   ::@echo %file1%
   ::@echo %file2%

As you can see, I created the directory unix2win under the Program Files directory.
Name your batch file unix2windows.bat. Once you've done this, open the console,
go to the directory where file1 is and type:

   unix2windows file1 file2.txt

The file2.txt should be created without problem.


P.D. Obviously you need the Java virtual machine previously installed!
Source: README.txt, updated 2012-04-22