You are here

Making Notepad2 Portable?

12 posts / 0 new
Last post
Panarchy
Offline
Last seen: 15 years 2 months ago
Joined: 2008-02-15 22:24
Making Notepad2 Portable?

Hello

How do I make Notepad2 Portable?

That is, stop it from even making an ini, but let it still save my settings.

how do I do this?

please reply

thanks in advance,

Panarchy

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2006-05-26 12:08
The Notepad2.ini settings

The Notepad2.ini settings file is required but only in the app root directory. It's in short needed by the app but it will not save anywhere else

your friendly neighbourhood moderator Zach Thibeau

Panarchy
Offline
Last seen: 15 years 2 months ago
Joined: 2008-02-15 22:24
Can I stop it from having to

Can I stop it from having to save an ini?

Jacob Mastel
Offline
Last seen: 5 months 6 days ago
Developer
Joined: 2007-06-13 19:36
No

But it's OSS so you can edit the code if you want. But why would you not want the ini? That's the only way it can save its settings. It is portable writting to the ini.

Release Team Member

Panarchy
Offline
Last seen: 15 years 2 months ago
Joined: 2008-02-15 22:24
How do I change the way it

How do I change the way it saves?

What does OSS mean?

Jacob Mastel
Offline
Last seen: 5 months 6 days ago
Developer
Joined: 2007-06-13 19:36
??

OSS means Open Source Software. And you can't change the way it saves unless you change the program. Besides why would you want to change the way it saves?

Release Team Member

Patrick Patience
Offline
Last seen: 4 weeks 22 hours ago
DeveloperModerator
Joined: 2007-02-20 19:26
Verification

I understand this as, it saves it's settings within it's binary directory, so it's portable. No?

dark_yux
Offline
Last seen: 11 years 2 months ago
Joined: 2007-10-23 11:23
Yes

Yes it is portable. I use it. But I don't think It can be P.A.F. compliant because you can't redirect the .ini file used to save settings, I think that's what they're saying.

self.path = path if self.path == None else self.path

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 10 months ago
Joined: 2007-01-12 19:22
You can't redirect the ini,

You can't redirect the ini, but you can copy it to the data directory when program closes and back to the app directory when you start it. There's a lot of programs here that uses this way to 'redirect' settings.

Bruce Pascoe
Offline
Last seen: 13 years 3 months ago
Joined: 2006-01-15 16:14
Yep.

Like InfraRecorder. You just have to watch, because if the launcher crashes or the system goes down before it finishes, the settings file gets left behind in the App directory, and in InfraRecorder's case, that causes problems...

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2006-05-26 12:08
Actually guys it can be

Actually guys it can be redirected Smile Notepad2.exe /F is for redirection it's documented Blum and it's been there since 2.1.1.9

your friendly neighbourhood moderator Zach Thibeau

Panarchy
Offline
Last seen: 15 years 2 months ago
Joined: 2008-02-15 22:24
Sweet!

Sweet!

Log in or register to post comments