need assistance on adding text into Notes.ini

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
junqi89
Posts: 4
Joined: 29 Sep 2014 08:17

need assistance on adding text into Notes.ini

#1 Post by junqi89 » 29 Sep 2014 08:20

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

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: need assistance on adding text into Notes.ini

#2 Post by foxidrive » 29 Sep 2014 08:54

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\

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: need assistance on adding text into Notes.ini

#3 Post by Squashman » 29 Sep 2014 09:11

You may need to check if your clients are running on a 64bit OS as well. So the path will be different.

junqi89
Posts: 4
Joined: 29 Sep 2014 08:17

Re: need assistance on adding text into Notes.ini

#4 Post by junqi89 » 29 Sep 2014 10:21

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.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: need assistance on adding text into Notes.ini

#5 Post by foxidrive » 29 Sep 2014 11:00

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.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: need assistance on adding text into Notes.ini

#6 Post by ShadowThief » 29 Sep 2014 11:22

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?

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: need assistance on adding text into Notes.ini

#7 Post by Squashman » 29 Sep 2014 12:29

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.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: need assistance on adding text into Notes.ini

#8 Post by ShadowThief » 29 Sep 2014 12:32

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.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: need assistance on adding text into Notes.ini

#9 Post by ShadowThief » 29 Sep 2014 18:25

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%

Post Reply