[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/30/2007 at 06:52AM PDT, ID: 22602016
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

Need a Script Created to Modify an .ini file

Asked by vseatech in Scripting Languages, MS DOS, Lotus Notes

I have an .ini file that contains some entries that I want deleted/modified.  I need a script that can automatically modify the contents of the .ini, and it’s something that would eventually be implemented through a logon script.  Can someone provide a script that automatically modifies the .ini file to delete/modify certain entries? The entries are:

AddInMenus=NCMenu

EXTMGR_ADDINS=NCExtMgr,nDLOLNEMFileWatcheru.dll

<Sometimes the above line will only be EXTMGR_ADDINS=

What I need is the following:

If AddInMenus=NCMenu exists then it needs to be deleted.

If EXTMGR_ADDINS=NCExtMgr,nDLOLNEMFileWatcheru.dll exists then it needs to be modified to:  EXTMGR_ADDINS=nDLOLNEMFileWatcheru.dll

If EXTMGR_ADDINS= exists then it needs to be deleted.

The entries are not static to any particular line, so they’re not fixed to lines 5 & 6.

Hopefully there’s a script guru out there that can tackle this with ease.

Here’s an example of the .ini contents:

[Notes]
KitType=1
Directory=C:\notes\data
InstallType=2
AddInMenus=NCMenu
EXTMGR_ADDINS=NCExtMgr,nDLOLNEMFileWatcheru.dll
FaultRecovery_Build=Release 6.5.2
DSTLAW=3,2,1,11,1,1
UPDATE_TIMER=10/12/2005 07:53:45 PM
SUDIALOG_ON=0
Timezone=5
DST=1
MailType=0
$$HasLANPort=1
WWWDSP_SYNC_BROWSERCACHE=0
WWWDSP_PREFETCH_OBJECT=0
EnableJavaApplets=1
EnablePlugins=1
Preferences=-1744829327
AltNameLanguage=en
ContentLanguage=en-US
WeekStart=1
ViewWeekStart=2
NavWeekStart=1
XLATE_CSID=52
SPELL_LANG=1033
SPELL_PREFERENCES=0
Region=en-US
DatePickerDirection=0
Passthru_LogLevel=0
Console_LogLevel=2
VIEWIMP1=Lotus 1-2-3,0,_IWKSV,,.123,.WK1,.WK3,.WK4,.WKS,.WR1,.WRK,,4,
VIEWIMP2=Structured Text,0,_ISTR,,.CGN,.LTR,.STR,,1,
VIEWIMP3=Tabular Text,0,_ITAB,,.PRN,.RPT,.TAB,.TXT,,1,
VIEWIMP4=vCard,0,_IVCRD,,.VCF,,1,
VIEWEXP1=Comma Separated Value,0,_XCSV,,.CSV,,1,
VIEWEXP2=Lotus 1-2-3,0,_XWKS,,.123,.WK1,.WK3,.WK4,.WKS,.WR1,.WRK,,4,
VIEWEXP3=Structured Text,0,_XSTR,,.CGN,.LTR,.STR,,1,
VIEWEXP4=Tabular Text,1,_XTAB,,.CGN,.LTR,.RPT,.TAB,,1,
VIEWEXP5=vCard 2.1,0,_XVCRD,,.VCF,,1,
VIEWEXP6=vCard 3.0,0,_XVCRD3,,.VCF,,1,
EDITIMP1=ASCII Text,0,_ITEXT,,.C,.H,.PRN,.RIP,.TXT,,1,
EDITIMP2=Binary with Text,0,_ISTRNGS,,.*,,1,
EDITIMP3=BMP Image,0,_IBMP,,.BMP,,18,
EDITIMP4=CGM Image,0,_IFL,,.CGM,.GMF,,8,
EDITIMP5=GIF Image,0,_IGIF,,.GIF,,18,
EDITIMP6=HTML File,0,_IHTML,,.HTM,.HTML,,1,
EDITIMP7=JPEG Image,0,_IJPEG,,.JPG,,18,
EDITIMP8=Lotus 1-2-3,0,_IW4W,_IWKSE,.123,.WK1,.WK3,.WK4,.WKS,.WR1,.WRK,,4,
EDITIMP9=Lotus PIC,0,_IPIC,,.PIC,,8,
EDITIMP10=Lotus Word Pro,0,_IW4W,,.LWP,,2,
EDITIMP11=Microsoft Excel,0,_IW4W,,.XLS,,4,
EDITIMP12=Microsoft RTF,0,_IW4W,_IRTF,.DOC,.RTF,,2,
EDITIMP13=Microsoft Word,0,_IW4W,,.DOC,,2,
EDITIMP14=PCX Image,0,_IPCX,,.PCX,,18,
EDITIMP15=TIFF 5.0 Image,0,_ITIFF,,.TIF,,18,
EDITIMP16=WordPerfect 5.x,0,_IW4W,,.DOC,.WPD,,2,
EDITIMP17=WordPerfect 6.0/6.1,0,_IW4W,,.DOC,.WPD,.WPT,,2,
EDITEXP1=ASCII Text,2,_XTEXT,,.C,.H,.PRN,.RIP,.TXT,,1,
EDITEXP2=CGM Image,2,_XCGM,,.CGM,.GMF,,8,
EDITEXP3=Microsoft RTF,2,_XRTF,,.DOC,.RTF,,4,
EDITEXP4=TIFF 5.0 Image,2,_XTIFF,,.TIF,,18,
EDITEXP5=vCard 2.1,0,XVCRD,,.VCF,,1,
EDITEXP6=vCard 3.0,0,XVCRD3,,.VCF,,1,
DDETimeout=10
NAMEDSTYLE0=030042617369630000000000000000000000000000000000000000000000000000000000000001010100000A0000000000000100A0050A0000006400A0050A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009404000000000000
NAMEDSTYLE0_FACE=Default Sans Serif
NAMEDSTYLE1=030042756C6C657400000000000000000000000000000000000000000000000000000000000001010100000A000000000000000008070A000000640008070A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049404000000000000
NAMEDSTYLE1_FACE=Default Sans Serif
NAMEDSTYLE2=0300486561646C696E6500000000000000000000000000000000000000000000000000000000010101010B0C0000000000000100A0050A0000006400A0050A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009404000000000000
NAMEDSTYLE2_FACE=Default Sans Serif
DefaultMailTemplate=mail6.ntf
DESKWINDOWSIZE=33 42 767 528
FileDlgDirectory=C:\Documents and Settings\rmoore\Desktop
TCPIP=TCP, 0, 15, 0
LAN0=NETBIOS,0,15,0,,12288,
SPX=NWSPX, 0, 15, 0
COM1=XPC,1,15,0,,12288,
COM2=XPC,2,15,0,
COM3=XPC,3,15,0,,12288,
COM4=XPC,4,15,0,
COM5=XPC,5,15,0,
Ports=TCPIP
DisabledPorts=LAN0,COM1,COM3,SPX,COM2,COM4,COM5
KeyFilename=rmoore.id
PhoneLog=2
Log=log.nsf, 1, 0, 7, 40000
CertificateExpChecked=rmoore.id 04/19/2007
MailFile=mail\rmoore.nsf
MailServer=CN=NotesMail1/OU=SEB/O=Varian
TemplateSetup=600400
Setup=650200
Location=Office (Network),9DE,CN=Robert Moore/OU=IIS/OU=SEB/O=Varian
$IEVersionMajor=6
RequestCertTableUpdate=rmoore.id 04/20/2007
ECLSetup=3
DYNINFOCR_OF2C598276:E08346CD-ON2DB06065:C521F41D=OF5BB2D1B5:E97E74D4-ON60096882:0C6F5CD5
$MIMESaveFormat=0
MIMEPromptMultilingual=1
CSEnblRstTm=0
DeskIconColors=0
ReplDefPartDocsLimitAmt=0
ReplDefPartAtchLimitAmt=0
ReplDefEncrypt=1
ReplDefEncryptType=2
ReplDefReplImmed=1
MIMEMultilingualMode=2
MIMETmpMultilingual=3
MailSetup=650200
MailUpgradeFolder=650200
$headlineClientId=9DFA5ECE:9BD30ACD-85257273:007306FD
DontCheckDefaultMail=1
NewMailSeqNum=2304
NewMailSeqNum852571F5:007B126E=2304
LastHistoryPruneTime=04/20/2007 07:56:33 AM
WindowSizeKeywords=644 517 299 275
BCASE_SITEMAP_DISPLAY=13
FINDSTRING0=Charlene
WindowMoreStateSearch=0
NAMES=names.nsf, mobiledir.nsf
ReplDefFullDocs=1
ReplDefPartDocsLimit=0
ReplDefPartAtchLimit=0
ReplDefFullText=0
$headlineDisableHeadlines=0
PromptForLocation=0
EmptyTrash=0
UNICODE_Display=1
AltCalendar=0
QuotePrefix=>
QuoteLineLength=70
IM_ENABLE_SSO=1
EnableActiveXInBrowser=1
EnableJavaScript=1
EnableJavaScriptErrorDialogs=1
EnableLiveConnect=1
BackgroundPrinting=1
ShowAccelerators=1
DisableImageDithering=1
NewMailInterval=5
WINDOWSIZEWIN=108 284 1375 885
MAXIMIZED=0
SPELL_DLL=ltspln50.dll
SPELL_DIR=C:\notes\data
BuddyListVisible=0
BuddyListPos=1349 779 243 389
WindowMoreStateNewRepl=1
WindowSizeUpdateDesign=634 430 323 106
HELPWINDOWSIZEWIN=143 409 1314 761
HELPMAXIMIZED=0
WindowSizeChooseServers=633 517 323 305
FINDSTRING1=jared
FINDSTRING2=Corey
FINDSTRING3=beamon
$W3LocalFormSave=0
IM_DYN_GROUP_OPEN_STATE=0
FINDSTRING4=isabel
ChooseNameDlgColWidths=124,124,124,124,9999,
WindowSizeAmbiguousDialog=467 430 656 307
$DialogMode=0
WindowSizeNameSoundexMailing=467 430 656 307
$EnableAlarms=1
CalendarTimeSlotStart=420
CalendarTimeSlotEnd=1140
CalendarTimeSlotDuration=60
WindowSizeBrowseAlarms=525 430 541 289
WindowSizeBrowseDForms=609 519 371 260
WindowSizeViewNew=574 142 451 408
$CreateBookmarkLastFolder=Favorite Bookmarks
WindowSizeBookmark=613 142 374 309
MultiRoomDlgSize=495,1082,516,836,
WindowSizeOpenDoc=524 517 548 297
SelectAddressesDialogSize=501,1097,520,845,
NameAddressingDlgLastViewName=0,List by name
Win32InfoboxPos=2 110
WindowSizeToolbarPrefs=494 455 593 499
WindowSizePickKeywords=591 525 403 314
URLAddress1=http://www.homelandsecurityus.com/
URLAddress2=http://hotair.com/archives/2007/04/11/todays-must-reads/
URLAddress3=http://video.google.com/videoplay?docid=-7320960375181402397&q=ferrari+vs+f1&hl=en
URLAddress4=http://www.thinkgeek.com/computing/accessories/8a0f/
MultiResourceDlgSize=495,1082,516,836,
SelectNamesDialogSize=491,1087,516,870,
URLAddress5=\\us-vcsvss-d1a\ConfigFile
WindowSizeBrowse=641 518 322 325
WindowSizeCalendarEmodal=495 523 608 522
URLAddress6=http://www.penny-arcade.com/comic/2007/03/09
WindowSizeReplSeverList=614 368 332 240
WindowSizeReplSettings=494 368 572 403
URLAddress7=http://www.gizmag.com/go/3603/
URLAddress8=http://www.welectronics.com/Bluetooth/SONYERICSSON_HBH-300.html
URLAddress9=http://www.gsmarena.com/blackberry_pearl_8100-1701.php
AutoFadeIMContactList=50
URLAddress10=http://www.gamespot.com/games.html?type=bc&platform=1029&page_type=games&tag=subnav;xbox_compat
 
Keywords: Need a Script Created to Modify an .in…
 
Loading Advertisement...
 
[+][-]05/30/07 06:58 AM, ID: 19179998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/30/07 09:05 AM, ID: 19181182

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/30/07 09:17 AM, ID: 19181273

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/31/07 11:36 AM, ID: 19190466

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/31/07 11:44 AM, ID: 19190508

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/01/07 08:31 AM, ID: 19195758

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/01/07 08:40 AM, ID: 19195831

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/01/07 09:15 AM, ID: 19196089

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/01/07 09:58 AM, ID: 19196358

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Scripting Languages, MS DOS, Lotus Notes
Sign Up Now!
Solution Provided By: Bill-Hanson
Participating Experts: 4
Solution Grade: A
 
 
[+][-]06/01/07 12:20 PM, ID: 19197346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/01/07 01:14 PM, ID: 19197770

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/07 09:54 AM, ID: 19210058

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/07 12:07 PM, ID: 19211103

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/07 08:18 AM, ID: 19225822

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/06/07 08:44 AM, ID: 19226052

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/10/07 12:53 PM, ID: 19253965

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91