hi leew thanks for that.
I'm not sure why but it seems to replace the string:
[Notes]
with
[Notes]=
Main Topics
Browse All TopicsHi there,
I have never made a bat file before, can someone please help me make one that does this:
open:
C:\Lotus\Notes\notes.ini
find a line starting with:
FileDlgDirectory=
replace the entire line with:
FileDlgDirectory=C:\
run
C:\Lotus\Notes\Notes.exe
thanks in advance,
rob
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Oops, didn't realize there were sections in the ini file. Try this:
REM Change into the lotus\notes directory
cd /d c:\lotus\notes
REM Check for an existing version of the "newnotes.ini" file -
REM if found, delete it as we want to start with a clean file
if exist newnotes.ini del newnotes.ini
REM Go through the entire file and recreate it. If and when
REM the FileDlgDirectory line is found, replace the value with C:\
REM Note: this uses = as a column delimiter with %%a containing
REM the setting name and %%b containing the value.
for /f "tokens=1,* delims==" %%a in (notes.ini) do (
If "%%a" == "FileDlgDirectory" (
Echo FileDlgDirectory=C:\ >> newnotes.ini
) Else (
If "%%b" == "" (
Echo %%a >> newnotes.ini
) Else (
Echo %%a=%%b >> newnotes.ini
)
)
)
REM Rename the existing notes.ini for backup purposes.
REM the backup name will be based on the date and time
REM in the format notes.YYYYMMDDHMMSS.ini
ren notes.ini notes.%date:~-4%%date:~4,2
REM Take the newly created newnotes.ini file and rename it to notes.ini
ren newnotes.ini notes.ini
Business Accounts
Answer for Membership
by: leewPosted on 2005-05-24 at 22:10:25ID: 14074825
Try this:
%%date:~7, 2%%time:~0 ,2%%time:~ 3,2%%time: ~6,2%.ini
REM Change into the lotus\notes directory
cd /d c:\lotus\notes
REM Check for an existing version of the "newnotes.ini" file -
REM if found, delete it as we want to start with a clean file
if exist newnotes.ini del newnotes.ini
REM Go through the entire file and recreate it. If and when
REM the FileDlgDirectory line is found, replace the value with C:\
REM Note: this uses = as a column delimiter with %%a containing
REM the setting name and %%b containing the value.
for /f "tokens=1,* delims==" %%a in (notes.ini) do (
If "%%a" == "FileDlgDirectory" (
Echo FileDlgDirectory=C:\ >> newnotes.ini
) Else (
Echo %%a=%%b >> newnotes.ini
)
)
REM Rename the existing notes.ini for backup purposes.
REM the backup name will be based on the date and time
REM in the format notes.YYYYMMDDHMMSS.ini
ren notes.ini notes.%date:~-4%%date:~4,2
REM Take the newly created newnotes.ini file and rename it to notes.ini
ren newnotes.ini notes.ini