Solved

Script to open up .ini file, make changes, then save

Posted on 2010-08-22
5
1,658 Views
Last Modified: 2012-05-10
i have an application that requires manually edits to an .ini file in order to turn on debug level logging.  I would like to have a script that can do the following steps, and another script to reverse the changes.

-stop specified services
-open .ini file
-change 3 entries in the .ini file
-save the file
-start the service back up.


Note:  the three entries that need to be updated are

Debug=0 to Debug=2
wantLogs=false  to wantLogs=true
wantTimings=false to wantTimings=true
WantVerbose=false to wantVerbose=true

0
Comment
Question by:Axyon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 55

Expert Comment

by:Bill Prew
ID: 33496088
This could be done fairly easily with a BAT file and the use of a small but powerful freeware INI file command line edit utility, would that be acceptable?  Or do you only want a VB script solution.

Also, can you provide an example of the INI file involved?  Are there sections in the file, and which ones do the lines you want to update fall into?

What services will need to be stopped and started?

~bp
0
 
LVL 1

Author Comment

by:Axyon
ID: 33496122
sure, that would be acceptable.

Debug falls under [general] secion
the others fall under [options]

service is "Livelink Admin Service"
and "Livelink Server Service"

Also, as part of the script, all files under the logs directory should be deleted, i.e.  c:\opentext\livelink\logs
[general]
version=18
LLIndexRequiresLogin=FALSE
LLIndexHTMLFile=llindex.html
DefaultRH=enterprise.home
DefaultContentRH=Enterprise.Home
Debug=2
Port=2099
Server=localhost
Logpath=.\logs\
DocNewTimeInDays=2
DocModTimeInDays=7
MailtoAddressSeparator=,
NewsDftExpiration=2
MaxUsersToListPerPage=30
MaxListingOnGroupExpn=100
MaxUsersInGroup=1000
AdminMailAddress=bsanders@vipbooths.com
ExplorerServerName=
integrity=TRUE
ScheduleHandlerClearInterval=30
MessageClearInterval=30
PauseSleep=2000
HaveSeenSetupPage=TRUE
INDEXHOME=index\
CaseInsensitiveQueries=FALSE

htmlImagePrefix=/img/
OTHOME=G:\Opentext\Livelink971\
InstallAdminPort=5858
NTSERVICENAME=Livelink
NTPATH=G:\Opentext\Livelink971\filters\
adminpwd=LLUkgc62sB5koO1Gdu9dH
DisplayServerName=Livelink
NavigationOption=0
UploadDirectory=G:\Opentext\Livelink971\upload\
AdminNewDBFlag=true
HaveValidatedDBAdminServers=TRUE
dftConnection=Livelink971
HaveSeenModuleInstallPage=TRUE
HaveValidatedReSyncPage=TRUE
HaveValidatedEnterpriseDataSource=TRUE
HaveValidatedSearchComponents=TRUE
HaveSeenModuleUpgradePage=TRUE
[options]
maxRightsString=250
MaxOpenSessions=100
wantByteServing=FALSE
wantLogs=true
wantSecureCookies=TRUE
wantTimings=TRUE
wantVerbose=TRUE
wantWeb=TRUE
EnableAgents=TRUE
EnableAgentsTrace=FALSE
EnableAgentsTestAll=FALSE
EnableNotification=TRUE
wantSearch=TRUE
wantSearchLogs=FALSE
wantHTMLView=FALSE
ObjectRankEnabled=TRUE
categoryNumToUpgrade=5
errorMessageWantDebugInfo=FALSE
wantIcons=FALSE
WantDirectFetch=false

[Locale]
Default=_en_US
_en_US=1

[Lang_en_US]
ShortTimeFormat=%I:%M %p
ShortDateFormat=%m/%d/%Y
ShortDateSeqFormat={1,1,2,1,'/','/'}
InputTimeFormat=%I:%M %p
InputDateFormat=%m/%d/%Y
InputDateSeqFormat={1,1,2,1,'/','/'}
LongTimeFormat=%I:%M %p
LongDateFormat=%m/%d/%Y
LongDateSeqFormat={1,1,2,1,'/','/'}
UserNameDisplayFormat=1
LL_ENCODING=UTF-8
LL_MULTIBYTE=TRUE
LL_INTLSTRINGS=TRUE
HTMLCharset=UTF-8
ENV_NLS_LANG=.UTF8
LL_LC_COLLATE=English

[scheduleactivity]
1000=1
4000=1
4100=0
4101=0
4102=0
8900=1
8999=1
9000=1
9001=1
3502=1
8000=1
3601=1

[InterestsProfile]
EventNo=1000

[Client]
StrictClientParse=TRUE
ReceiveBeforeSend=TRUE

[dateformats]
InputDateMinYear=1990
InputDateMaxYear=2027
TwoDigitYears=FALSE
WantTimeZone=FALSE
SeparateCentury=FALSE

[report]
objectSubTypes={ 299, 215, 202, 206, 204, 144, 0, 140, 207, 130, 1, 131, 136, 400, 223, 230, 208, 128, 335 }

[Attributes]
AttributeMaxRows=50

[loader]
load=sockserv;javaserver;agents;notify;wfagent
load_relagent=relagent

[sockserv]
lib=.\bin\llsockserv.dll
name=sockserv
group=sockserv.grp
prio=critical
timeout=5000
info=G:\Opentext\Livelink971\config\opentext.ini;sockserv
port=2099
load=llserver

[llserver]
id=3
path=.\bin\llserver2.dll
min=5
max=5

[agents]
lib=.\bin\lljob.dll
name=lljob
prio=critical
timeout=5000
info=.\config\opentext.ini;agents
StartScript=.\scripts\llfull.lxe
JobScript=.\scripts\agent_run.e
CRON=0,5,10,15,20,25,30,35,40,45,50,55 * * * *
SleepIntervalSec=60
ExcludeActivityIDs=3000,3501,5000,8999,9000,9001,9999

[notify]
lib=.\bin\lljob.dll
name=lljob
prio=critical
timeout=5000
info=.\config\opentext.ini;notify
StartScript=.\scripts\llfull.lxe
JobScript=.\scripts\agent_run.e
SleepIntervalSec=300
ActivityIDs=3000,3501,5000,8999,9000,9001,9999

[wfagent]
lib=.\bin\lljob.dll
name=lljob
prio=critical
timeout=5000
info=.\config\opentext.ini;wfagent
StartScript=.\scripts\llfull.lxe
JobScript=.\scripts\wfagent_run.e
SleepIntervalSec=600
WSessionCleanSeconds=604800
AgentOffsetSeconds=86400
FIFOProcessingOrder=false
SendEmailOnErrors=true

[filters]
tptFile=G:\Opentext\Livelink971\config\view.tpt
cachePath=G:\Opentext\Livelink971\viewcache\
lastIdFile=G:\Opentext\Livelink971\viewcache\lastid.dat
filterPath=G:\Opentext\Livelink971\filters\
eraseNo=10
autoRecMimeTypes=application/octet-stream
relativeLinkMimeTypes=text/html,application/pdf
TypeSense=BROWSER
INSOViewableMIMEType_67=text/xml
INSOViewableMIMEType_66=application/x-mswrite
INSOViewableMIMEType_65=image/x-presentations
INSOViewableMIMEType_64=image/x-wordperfect-graphics
INSOViewableMIMEType_63=application/x-wordperfect6
INSOViewableMIMEType_62=text/x-vcard
INSOViewableMIMEType_61=image/x-targa
INSOViewableMIMEType_60=application/x-supercalc5
INSOViewableMIMEType_59=application/msexcel
INSOViewableMIMEType_58=application/rtf
INSOViewableMIMEType_57=application/vnd.hp-hpgl
INSOViewableMIMEType_56=application/vnd.ms-word
INSOViewableMIMEType_55=application/vnd.msword
INSOViewableMIMEType_54=application/wordperfect5
INSOViewableMIMEType_53=application/wordperfect5.1
INSOViewableMIMEType_52=application/x-excel
INSOViewableMIMEType_51=application/x-freelance
INSOViewableMIMEType_50=application/x-lotus123
INSOViewableMIMEType_49=application/x-msaccess
INSOViewableMIMEType_48=application/x-msexcel
INSOViewableMIMEType_47=application/x-mspowerpoint
INSOViewableMIMEType_46=application/x-msworks-wp
INSOViewableMIMEType_45=application/x-quickviewplus
INSOViewableMIMEType_44=application/xlc
INSOViewableMIMEType_43=image/x-autocad
INSOViewableMIMEType_42=image/x-cgm
INSOViewableMIMEType_41=image/x-lotus-pic
INSOViewableMIMEType_40=image/x-macpict
INSOViewableMIMEType_39=image/x-ms-bmp
INSOViewableMIMEType_38=image/x-png
INSOViewableMIMEType_37=image/x-win-bitmap
INSOViewableMIMEType_36=application/x-quattro-win
INSOViewableMIMEType_35=application/x-quattro-dos
INSOViewableMIMEType_34=image/ping
INSOViewableMIMEType_33=image/pict
INSOViewableMIMEType_32=image/x-pc-paintbrush
INSOViewableMIMEType_31=application/x-paradox
INSOViewableMIMEType_30=image/x-perfectworks
INSOViewableMIMEType_29=application/x-multiplan
INSOViewableMIMEType_28=application/vnd.ms-works
INSOViewableMIMEType_27=application/x-msworks-db
INSOViewableMIMEType_26=application/msword
INSOViewableMIMEType_25=application/vnd.ms-powerpoint
INSOViewableMIMEType_24=application/vnd.ms-excel
INSOViewableMIMEType_23=application/vnd.msaccess
INSOViewableMIMEType_22=image/x-micrografx
INSOViewableMIMEType_21=application/macwriteii
INSOViewableMIMEType_20=application/vnd.lotus-wordpro
INSOViewableMIMEType_19=application/vnd.lotus-freelance
INSOViewableMIMEType_18=application/vnd.lotus-1-2-3
INSOViewableMIMEType_17=image/x-hpgl
INSOViewableMIMEType_16=image/x-harvard-graphics
INSOViewableMIMEType_15=image/x-gem
INSOViewableMIMEType_14=application/x-framework
INSOViewableMIMEType_13=image/g3fax
INSOViewableMIMEType_12=application/x-enable-wp
INSOViewableMIMEType_11=application/x-enable-spreadsheet
INSOViewableMIMEType_10=application/dec-dx
INSOViewableMIMEType_9=application/dca-rft
INSOViewableMIMEType_8=application/x-dbase
INSOViewableMIMEType_7=image/bmp
INSOViewableMIMEType_6=image/cgm
INSOViewableMIMEType_5=image/tiff
INSOViewableMIMEType_4=image/x-win-metafile
INSOViewableMIMEType_3=image/vnd.dxf
INSOViewableMIMEType_2=application/x-ami
INSOViewableMIMEType_1=image/x-amidraw

[ViewableMimeTypes]
MimeType_1=image/gif
MimeType_2=image/jpeg
MimeType_3=text/html
MimeType_4=text/plain
MimeType_5=application/pdf
MimeType_6=application/x-zip-compressed
MimeType_7=text/xml
MimeType_8=message/rfc822
MimeType_9=application/x-macbinary
MimeType_10=image/pjpeg
MimeType_11=application/zip

[Catalog]
NGrandChildren=6

[Passwords]
MinimumLength=0
MustContainDigits=FALSE
ExpirationDays=-1
ChangePWAtFirstLogin=FALSE
MustBeDifferent=FALSE

[UserSetting]
RowColorOptions=#FFFFFF,#EEEEEE,#FFFFCC,#CCFFFF,#CCFFCC,#DDDDFF
ColumnHeaderColorOptions=#CCCCCC,#A0B8C8,#83D8A4,#CCCC99
Row1Color=#FFFFFF
Row2Color=#EEEEEE
ColumnHeaderColor=#CCCCCC
UserNameAppendID=0

[Security]
directoryList=\support\,\filters\
CGIHosts=
Authentication=NTLM
CAP_WebService_Url=
checkNextURL=false
cgiDirectory=cgi
allowedNextURLSites={}
allowedNextURLPrefixes={}
DirectoryService=NTLM
UsernameStyle=0
DomainAndName=FALSE
UsernameOption=lowercase
Authentication_User=REMOTE_USER
cookieExpirationMode=0
httponlyCookies=false
cookieUserPWD=false
cookieOwnerID=false
cookiePWDExpireDate=false
cookieClientIPAddress=0
disableAutoPassword=false
hideContainerSize=false
filterString=
separatorString=
validHttpReferers={'Http'}
openCmd=true
viewAsWebPageCmd=true

[Tabs]
NewsTabs={}
FavoritesTabs={}
ProjectTabs={}
TaskTabs={}
StatusTabs={}

[Modules]
AlwaysInstalled={ 'webhelp', 'indexobject', 'webadmin', 'webdoc', 'webnode', 'webuser', 'task', 'home', 'channel', 'webnotify', 'project', 'websovmgmt' , 'otadmin', 'webotcindex', 'websbroker', 'websystemobj', 'webdirwalk', 'webhh', 'webattribute', 'xmlsearch', 'webxmlactivator', 'themes', 'summarizer', 'nlqsearch', 'dc', 'recommender', 'itemtemplate', 'projecttemplate', 'collections', 'webprospector','javamodule','bestbets','storageprovider','searchstats','compression','multifile', 'webconfig', 'webedit'}
TOCOrder={'webdoc','home','webuser','project','websbroker','discussion','task','channel','webattribute','webnotify','webwork','webwfp','report','webdirwalk','recommender','collections','itemtemplate','webprospector','textedit','appearances','polling','multifile','reportext','webreports','webdav'}
TOCOrderAdmin={'webadmin','otadmin','websystemobj','webotcindex','webdirwalk','websbroker','webnotify','webdoc','report','recommender','itemtemplate','webprospector','webattribute','webwork','webedit','multifile','collections','directory','webreports','webdav'}
module_0=apicore
module_1=apisea
module_2=appearances
module_3=bestbets
module_4=channel
module_5=collections
module_6=compression
module_7=dc
module_8=discussion
module_9=home
module_10=indexobject
module_11=itemtemplate
module_12=javamodule
module_13=multifile
module_14=nickname
module_15=nlqsearch
module_16=otadmin
module_17=polling
module_18=project
module_19=projecttemplate
module_20=pstage
module_21=recommender
module_22=report
module_23=searchstats
module_24=services
module_25=storageprovider
module_26=summarizer
module_27=task
module_28=textedit
module_29=themes
module_30=tripledes
module_31=undelete
module_32=webadmin
module_33=webattribute
module_34=webconfig
module_35=webdirwalk
module_36=webdoc
module_37=webedit
module_38=webhelp
module_39=webhh
module_40=webnode
module_41=webnotify
module_42=webotcindex
module_43=webprospector
module_44=websbroker
module_45=websovmgmt
module_46=websystemobj
module_47=webuser
module_48=webwfp
module_49=webwork
module_50=webxmlactivator
module_51=xmlsearch
apicore=_1_0_3
apisea=_3_3_2
appearances=_1_0_0
bestbets=_1_0_0
channel=_2_2_0
collections=_2_0_0
compression=_4_1_0
dc=_2_1_0
discussion=_3_0_0
home=_2_2_0
indexobject=_2_2_0
itemtemplate=_1_0_0
javamodule=_1_0_0
multifile=_4_1_0
nickname=_1_0_0
nlqsearch=_2_0_1
otadmin=_2_1_5
polling=_1_0_0
project=_2_2_0
projecttemplate=_1_0_0
pstage=_1_0_0
recommender=_2_0_0
report=_2_2_0
searchstats=_1_0_0
services=_9_7_1
storageprovider=_1_1_0
summarizer=_2_0_1
task=_2_2_0
textedit=_1_0_0
themes=_2_0_1
tripledes=_1_0_0
undelete=_1_1_0
webadmin=_2_2_0
webattribute=_1_0_0
webconfig=_1_0_0
webdirwalk=_2_1_5
webdoc=_2_2_0
webedit=_3_2_0
webhelp=_2_2_0
webhh=_2_1_5
webnode=_2_2_0
webnotify=_2_3_0
webotcindex=_3_0_0
webprospector=_4_5_0
websbroker=_3_0_0
websovmgmt=_3_0_0
websystemobj=_4_0_0
webuser=_2_2_0
webwfp=_4_5_0
webwork=_4_5_0
webxmlactivator=_3_0_0
xmlsearch=_1_0_0
ospaces_apicore={'apiattribute','apicore','apidoc','apiinbox','apisearch','apiuser','apiwork'}
ospaces_apisea={'apisea'}
ospaces_appearances={'appearances'}
ospaces_bestbets={'bestbets'}
ospaces_channel={'channel'}
ospaces_collections={'collections'}
ospaces_compression={'compression'}
ospaces_dc={'dc'}
ospaces_discussion={'discussion'}
ospaces_home={'home'}
ospaces_indexobject={'indexobject','indexlibrary'}
ospaces_itemtemplate={'itemtemplate'}
ospaces_javamodule={'javamodule'}
ospaces_multifile={'multifile'}
ospaces_nickname={'nickname'}
ospaces_nlqsearch={'nlqsearch'}
ospaces_otadmin={'otadmin'}
ospaces_polling={'polling'}
ospaces_project={'project','projectoverview'}
ospaces_projecttemplate={'projecttemplate'}
ospaces_pstage={'pstage'}
ospaces_recommender={'recommender'}
ospaces_report={'report'}
ospaces_searchstats={'searchstats'}
ospaces_services={'service','collaborationservice','configservice','docmanservice','memberservice','searchservices','workflowservice'}
ospaces_storageprovider={'storageprovider'}
ospaces_summarizer={'summarizer'}
ospaces_task={'task'}
ospaces_textedit={'textedit'}
ospaces_themes={'themes'}
ospaces_tripledes={'tripledes'}
ospaces_undelete={'undelete'}
ospaces_webadmin={'webadmin'}
ospaces_webattribute={'webattribute'}
ospaces_webconfig={'webconfig','llconfig'}
ospaces_webdirwalk={'dirwalk','webdirwalk'}
ospaces_webdoc={'webdoc'}
ospaces_webedit={'webedit'}
ospaces_webhelp={'webhelp'}
ospaces_webhh={'hh','webhh'}
ospaces_webnode={'webnode','inbox'}
ospaces_webnotify={'llagent','llnotify','webagent','webnotify'}
ospaces_webotcindex={'otcindex','webotcindex'}
ospaces_webprospector={'prospector','webprospector'}
ospaces_websbroker={'sbroker','websbroker'}
ospaces_websovmgmt={'supsearch','sovmgmt','websovmgmt'}
ospaces_websystemobj={'systemobj','websystemobj','systemobjex','websystemobjex'}
ospaces_webuser={'webuser'}
ospaces_webwfp={'webwfp'}
ospaces_webwork={'wfmain','webwork'}
ospaces_webxmlactivator={'xmlactivator','webxmlactivator'}
ospaces_xmlsearch={'xmlsearch'}
module_52=directory
ospaces_directory={'directory','ldap','ntlm'}
directory=_3_1_0
module_53=reportext
ospaces_reportext={'reportext'}
reportext=_3_0_1
module_54=webreports
ospaces_webreports={'webreports'}
webreports=_5_1_0
module_55=webdav
ospaces_webdav={'webdav'}
webdav=_3_6_1









[HelpMap]
mapping_1={'BasicHelp','root/using-help.htm'} 
mapping_2={'ll.EditPw','fn-change-psswrd-p.htm'} 
mapping_3={'ll.Logout','root/fn-logout-p.htm'} 
mapping_4={'ll.Index','root/ll-welcome-bg.htm'} 
mapping_5={'ll.nicknamechange','root/fn-assign-nickname-p.htm'}

[AdminHelpMap]
mapping_1={'BasicHelp','webadmin/wba-lladmin-so.htm'}

[Chicklet]
chickletGifName=chicklet.png

[Servers]

#server_0=remote_0!http://myNT/support/livelink.exe"
[FetchMimeTypes]
type1=application/x-msdownload
type2=application/octet-stream

[XML]
StyleSheetMimeType=text/xsl
MaxNodesToExport=1000
FetchSize=20
UnencodedMimetype_1=text/xml

[EditableMimeTypes]
text/html=TRUE
text/plain=TRUE
text/tab-separated-values=TRUE
text/xml=TRUE
text/xsl=TRUE
text/x-setext=TRUE
text/x-sgml=TRUE

[UndeletePurge]
OlderThan=7

[DocumentUndelete]
ExcludedSubtypes={336,290,276,275,270,269,268,258,215,212,210,209,208,207,206,205,204,201,162,161,154,148,143,137,130}

[QuickLinks]

[Collections]
EnableCollectionsButton=false

[javaserver]
lib=.\bin\javaserver.dll
name=javaserver
prio=critical
timeout=5000
info=.\config\opentext.ini;javaserver
JavaVMLibraryPath=.\jre\bin\server\
JavaVMOption_1=-Djava.class.path=.\javaserver\lib\startup.jar;.\javaserver\lib;.\ojlib\classloader.jar
JavaVMOption_2=-Djava.security.auth.login.config=.\config\javaserver.login.config
JavaVMOption_3=-Xrs
JavaVMOption_4=-Djava.system.class.loader=com.opentext.livelink.oj.LivelinkClassLoader
SCMEventClass=com/opentext/elf/server/SCMEventManager
ApplicationClass=com/opentext/elf/Elf
ApplicationOption_1=.\config\opentext.ini

[JavaModules]
core=com.opentext.elf.plugin.core.CorePlugin
node=com.opentext.elf.plugin.node.NodePlugin
member=com.opentext.elf.plugin.member.MemberPlugin
library=com.opentext.elf.plugin.library.LibraryPlugin
discussion=com.opentext.elf.plugin.discussion.DiscussionPlugin
channel=com.opentext.elf.plugin.channel.ChannelPlugin
project=com.opentext.elf.plugin.project.ProjectPlugin
home=com.opentext.elf.plugin.home.HomePlugin
task=com.opentext.elf.plugin.task.TaskPlugin
recommender=com.opentext.elf.plugin.recommender.RecommenderPlugin
wfmain=com.opentext.elf.plugin.wfmain.WFMainPlugin
attribute=com.opentext.elf.plugin.attribute.AttributePlugin
report=com.opentext.elf.plugin.report.ReportPlugin
indexlibrary=com.opentext.elf.plugin.indexlibrary.IndexLibraryPlugin
notify=com.opentext.elf.plugin.notify.NotifyPlugin
agent=com.opentext.elf.plugin.agent.AgentPlugin
search=com.opentext.elf.plugin.search.SearchPlugin
searchbroker=com.opentext.elf.plugin.searchbroker.SearchBrokerPlugin
systemobject=com.opentext.elf.plugin.systemobject.SystemObjectPlugin
undelete=com.opentext.elf.plugin.undelete.UndeletePlugin
scheduledactivity=com.opentext.elf.plugin.scheduledactivity.ScheduledActivityPlugin
appearances=com.opentext.elf.plugin.appearances.AppearancesPlugin
audit=com.opentext.elf.plugin.audit.AuditPlugin
storageprovider=com.opentext.elf.plugin.storageprovider.StorageProviderPlugin
webdav=com.opentext.elf.plugin.webdav.WebDAVPlugin

[JavaModulesConfig]
rmiPort=1099

urlPath=/Livelink/
baseURL=/Livelink/livelink
[Workflow]
ExcludedNodeSubTypes={731,732}

[ExternalDCS]
host=
port=
viewcache=G:\Opentext\Livelink971\viewcache\
cachesize=10

[QDF]
lib=dcsqdf
outputoleinfo=true

[SearchOptions]
SearchResultsCacheExpiration=30
wantCacheResults=FALSE

[OTCommon]
otpath=G:\Opentext\Livelink971\config

InstallType=primary
[OTAdmin]
port=5858

[LivelinkExtractor]
MaxVersionsToExtract=-1
ExcludedNodeTypes={ 137, 142, 143, 148, 150, 154, 161, 162, 201, 203, 209, 210, 211 }
ExcludedVolumeTypes={ 148, 162 }
ExcludedLocationNodes={}

[ExcludedMimeTypes]
audio/basic=TRUE
audio/mpeg=TRUE
audio/x-aiff=TRUE
audio/x-wav=TRUE
image/gif=TRUE
image/ief=TRUE
image/jpeg=TRUE
image/tiff=TRUE
image/x-bmp=TRUE
image/x-cmu-raster=TRUE
image/x-pcx=TRUE
image/x-pic=TRUE
image/x-pict=TRUE
image/x-portable-anymap=TRUE
image/x-portable-graymap=TRUE
image/x-portable-pixmap=TRUE
image/x-rgb=TRUE
image/x-xbitmap=TRUE
image/x-xpixmap=TRUE
image/x-xwindowdump=TRUE
video/mpeg=TRUE
video/quicktime=TRUE
video/x-msvideo=TRUE
video/x-sgi-movie=TRUE

[SearchEngine]
Encoding=UTF-8

[FilterEngine]
window=10
minwindow=5
maxtime=120000
maxfilesize=8
summaryhotwords=20
timeout=30
dllpath=G:\Opentext\Livelink971\filters

[Summarizer]
lib=dcssum
SumDefFile=../config/summdef.eng
SumDocFreqFile=../config/docfreq.eng
SumAbbrevFile=../config/abbrev.eng
SumStopWordFile=../config/stopword.eng
SumTagFile=../config/tags.eng

[nlqsearch]
SumDefFile=../config/natlang.eng
SumDocFreqFile=../config/docfreq.eng
SumAbbrevFile=../config/abbrev.eng
SumStopWordFile=../config/nlstopword.eng
SumTagFile=../config/tags.eng

[HitHighlight]
cachePath=G:\Opentext\Livelink971/cache/hh/
hhwfwcnvdir=G:\Opentext\Livelink971/filters/

[HHFilterSettings]
maxfilesize=8
timeout=280
dllpath=G:\Opentext\Livelink971\filters

[HHExcludedMIMETypes]
mime1=application/x-zip-compressed
mime2=application/zip
mime3=application/x-msdownload
mime4=application/octet-stream
mime5=audio/basic
mime6=audio/mpeg
mime7=audio/x-aiff
mime8=audio/x-wav
mime9=image/gif
mime10=image/ief
mime11=image/jpeg
mime12=image/tiff
mime13=image/x-bmp
mime14=image/x-cmu-raster
mime15=text/xml+dxl

[HHIncludedMIMETypes]
mime1=text/plain
mime2=text/html
mime3=text/xml
mime4=text/sgml
mime5=application/vnd.ms-tnef
mime6=message/rfc822

[DCSServers]
SpawnExe=G:\Opentext\Livelink971/bin/dcs
SpawnIni=G:\Opentext\Livelink971/config/opentext.ini

[DCS]
NumThreads=2
QueueSize=20
logLevel=1
logfile=G:\Opentext\Livelink971\logs\dcs
rulesfile=G:\Opentext\Livelink971\config\dcsrules.txt
modreq=DCSipool
modx01=QDF
mod03=Summarizer
modx04=DCSxpdf

[DCSView]
loglevel=1
logfile=G:\Opentext\Livelink971\logs\dcsview
dllpath=G:\Opentext\Livelink971\filters
rulesfile=G:\Opentext\Livelink971\config\dcsviewrules.txt
NumThreads=1
QueueSize=50
modreq=DCSpipe
modx02=QDF
modx04=DCSxpdf

[DCSworker]
lib=dcsworker
maxcalls=200

[DCSpipe]
Lib=dcspipe

[DCSipool]
lib=dcsipool

[DCSxpdf]
lib=dcsxpdf
startdir=G:\Opentext\Livelink971\filters\xpdf

[relagent]
lib=.\bin\lljob.dll
name=lljob
prio=critical
timeout=5000
info=.\config\opentext.ini;relagent
StartScript=.\scripts\llfull.lxe
JobScript=.\scripts\relagent_run.e
SleepIntervalSec=21600

[sgml]
SGML_DTD_DIR=G:\Opentext\Livelink971\temp

[Home]
EditOrganizeMaxItems=100

[LicenseKeyInfo]
CompanyName=North West Upgrading
ExpireDate=?
NumUsers=100
LicenseKey=MTAwPzkuNy4wTm9ydGggV2VzdCBVcGdy

[dbconnection:Livelink971]
servtype=MSSQL
servname=localhost
database=Livelink971
username=Livelink971
encrypteduserpwd=W5iAKEJraCpxICYgBDDGVg==

[DirectoryService]
LogFile=.\logs\LDAP_RO_2010.08.21.134510.log
LogLevel=3

[DirectoryService:NTLM]
DefaultDomain=someDomain
GroupName=someGroup
DomainAndName=FALSE
UserPasswordOption=hidden
UsernameOption=lowercase
UsernameStyle=0
DeleteUserAccounts=


[WebReports]
EnableOscriptReportviews=true
OscriptAllowWholePkg={'Assoc','Bytes','Date','List','Math','Pattern','RecArray','Str','String','Boolean','undefined','void','integer','real','record'}
OscripttempListtion1={'Scheduler.debugbreak','Web.CRLF','Web.Escape','Web.Unescape','Web.DecodeForURL','Web.EncodeForURL','Web.Format','Web.EscapeHTML','Web.EscapeXML'}
additionalSearchColumns={{'shortOTSummary','shortSummary'},{'OTSummary','Summary'}}
addsearchbutton=null

[WebDAV]
llcharset=UTF-8
footertext=Livelink ® Version 9.7.1, Copyright © 1995-2007 Open Text Inc.  All rights reserved.
rootpath=/livelinkdav

[Weblink]
weblinkdir=weblink361

[MimetypesToOctetStream]
application/x-zip-compressed=1
application/zip=1
application/x-tar=1
application/x-rar-compressed=1
application/gzip-compressed=1

Open in new window

0
 
LVL 55

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 33496238
Okay, attached is the BAT script that should do the job.  You'll need to adjust as needed with the name of the INI file, the name of the services, etc.  Also, you will need to download inifile.exe from the following link and place it with the BAT folder so it can be run:

http://home.mnet-online.de/horst.muc/wbat32.htm#inifile

The SC command takes the name of the service, not it's title, so you should do a SC QUERY at a command prompt first and look for the name of the services you need to stop / start.

You can create the second script from this one once you get it working, just give it a different name and change the values updated in the INI file.

~bp
@echo off
 
REM Define location of INI file to update,m and LOG files to delete
set IniFile=c:\temp\file.ini
set LogsDir=c:\opentext\livelink\logs
 
REM Stop related services
sc stop service1
sc stop service2
 
REM Update values in INI file
inifile %IniFile% [general] Debug=0
inifile %IniFile% [options] wantLogs=false
inifile %IniFile% [options] wantTimings=false
inifile %IniFile% [options] wantVerbose=false
 
REM Clean LOG file directory
del /F /Q %LogsDir%\*
 
REM Start related services
sc start service1
sc start service2

Open in new window

0
 
LVL 1

Author Closing Comment

by:Axyon
ID: 33496361
worked like a champ.
0
 
LVL 55

Expert Comment

by:Bill Prew
ID: 33496366
Great, glad that was helpful.

~bp
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question