need assistance on adding text into Notes.ini
Moderator: DosItHelp
need assistance on adding text into Notes.ini
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
kindly appreciate if anyone can assist on this portion
Re: need assistance on adding text into Notes.ini
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
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
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
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.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: need assistance on adding text into Notes.ini
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
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.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: need assistance on adding text into Notes.ini
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.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: need assistance on adding text into Notes.ini
Although to actually answer your question...
If you don't mind creating a temporary file, you can do something like this:
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%