Page 1 of 1

need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 08:20
by junqi89
Dear all, i need assist on how to use command line to add this text into c:\programs files\ibm\notes\notes.ini. The text will be AttachmentUseCaption=0. can anyone advise on this ?

kindly appreciate if anyone can assist on this portion

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 08:54
by foxidrive

Code: Select all

>>"c:\programs files\ibm\notes\notes.ini" echo AttachmentUseCaption=0


In Vista and later you might have to elevate the cmd prompt to write in c:\programs files\

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 09:11
by Squashman
You may need to check if your clients are running on a 64bit OS as well. So the path will be different.

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 10:21
by junqi89
foxidrive wrote:

Code: Select all

>>"c:\programs files\ibm\notes\notes.ini" echo AttachmentUseCaption=0


In Vista and later you might have to elevate the cmd prompt to write in c:\programs files\


how about by adding it into the top line as required by my company.

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 11:00
by foxidrive
junqi89 wrote:how about by adding it into the top line as required by my company.


People often don't take care in asking questions, or provide proper details about the task.

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 11:22
by ShadowThief
junqi89 wrote:
foxidrive wrote:

Code: Select all

>>"c:\programs files\ibm\notes\notes.ini" echo AttachmentUseCaption=0


In Vista and later you might have to elevate the cmd prompt to write in c:\programs files\


how about by adding it into the top line as required by my company.

How about mentioning that in your first post?

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 12:29
by Squashman
junqi89 wrote:how about by adding it into the top line as required by my company.

What does it matter? None of the 150 entries in my Notes.ini are even close to being in any type of order.

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 12:32
by ShadowThief
Squashman wrote:
junqi89 wrote:how about by adding it into the top line as required by my company.

What does it matter? None of the 150 entries in my Notes.ini are even close to being in any type of order.

Probably some sort of lazy change tracking system.

Re: need assistance on adding text into Notes.ini

Posted: 29 Sep 2014 18:25
by ShadowThief
Although to actually answer your question...

If you don't mind creating a temporary file, you can do something like this:

Code: Select all

:: Adds a line to the first line of a text file
:: Because the line isn't cool enough to sit at the back of the file
@echo off
set source_file=source.txt
set temp_file=temp.txt
>%temp_file% echo This is a new first line added at %time%
>>%temp_file% type %source_file%
>%source_file% type %temp_file%
del %temp_file%