Page 1 of 1

.NFO file conversion is easy!

Posted: 04 May 2021, 14:51
by SKAN
https://en.wikipedia.org/wiki/.nfo

A decade back, there was a discussion on .nfo file editors.
The conversion is too simple with AutoHotkey 1.1
Note: Notepad font needs to be a mono-spaced.

Code: Select all

; NFO file conversion
Text := FileOpen("desaster.nfo", "r", "cp437").Read() ; Read
FileOpen("desaster.txt", "w", "utf-16").Write(Text)   ; Write
 
Before:
image.png
image.png (23.08 KiB) Viewed 4672 times
 
 
After
image.png
image.png (19.2 KiB) Viewed 4672 times

Re: .NFO file conversion is easy!

Posted: 28 Feb 2022, 02:51
by newcod3r
Is it possible to script it such that any .nfo file I open is automatically converted to & opened as .txt, or at least displayed correctly in notepad++?

Re: .NFO file conversion is easy!

Posted: 28 Feb 2022, 03:17
by SKAN
newcod3r wrote:
28 Feb 2022, 02:51
Is it possible to script it such that any .nfo file I open is automatically converted to & opened as .txt, or at least displayed correctly in notepad++?
Create a compiled script and associate it to .nfo extension.
I can't post an example script, as I don't code in V1 anymore.

Re: .NFO file conversion is easy!

Posted: 02 Mar 2022, 15:06
by ahk7
You can simply associate the ahk script with .nfo extension - no need to compile afaik.

Re: .NFO file conversion is easy!

Posted: 11 Mar 2022, 04:58
by jarahbe32
is looks so interesting, how you do that
panorama spectrum
router ip login