CleanINI Version 0.55 by Carsten Arnold C.Arnold@Transnet.de 15.2.2001 Translated by Babelfish. The original You find in file liesmich. This Tool does delete all Handles in the os2sys.ini by any objects to not be used. Additionally it can be deleted unnecessary PM_Workplace:FolderPos, PM_Abstract:FldrContent, PMWP_ASSOC_TYPE, PMWP_ASSOC_FILTER, PMWP_ASSOC_CHECKSUM and PM_Workplace:Startup. ATTENTION, with the deletion of PM_Workplace:FolderPos, PM_Abstract:FldrContent, PMWP_ASSOC_TYPE, PMWP_ASSOC_FILTER, PMWP_ASSOC_CHECKSUM and PM_Workplace:Startup should one be very careful. For this into the os2.ini the following Applications on Handles are examined: PMWP_ASSOC_TYPE PMWP_ASSOC_FILTER PMWP_ASSOC_CHECKSUM PM_Workplace:Startup PM_Abstract:FldrContent PM_Abstract:Objects PM_Workplace:FolderPos PM_Workplace:Location PM_Workplace:Templates The use is quite simple. No parameters and the program puts immediately loosely, i.e. it scanns, lists everything on the display and writes a log file CleanINI.log. Modifications are not made here yet. With the parameter /c the same occurs as above, only beforehand a Backup is written into a file Backup.ini, is this already available it in Backup0.ini is renamed and a new Backup.ini created. That can be done up to the fourth generations, i.e. there can be max. a Backup2.ini. If this is available, she is deleted. Then scanned, the modifications into the os2sys.ini is written and the WPS is again started (if /restart specified). Only the Handles becomes secured. If deleting by PM_Workplace:FolderPos, PM_Abstract:FldrContent, PMWP_ASSOC_TYPE, PMWP_ASSOC_FILTER, PMWP_ASSOC_CHECKSUM or PM_Workplace:Startup permitted, also these become saved. If it should come to problems, can be written with the parameter /rest the Handles from the Backup.ini again back into the os2sys.ini. Afterwards again a WPS restart is made (if /restart specified). The Restore functioned, I would protect however nevertheless the INIs beforehand again; -) Here again the possible parameters: /Resp:file Reponse file /DelFldPos enable delete of PM_Workplace:FolderPos /DelFldCont enable delete of PM_Abstract:FldrContent /DelMisc enable delete of PMWP_ASSOC_TYPE, PMWP_ASSOC_FILTER, PMWP_ASSOC_CHECKSUM and PM_Workplace:Startup /DelAll parameters /DelFldPos, /DelFldCont and /DelMisc /multipass The scanning of handles works in more as one passes. So it can be more deleted. /remote:x if x=delete handles of remote files are deleted if x=ignore handles of remote files are ignored /Restart restart WPS after changes of Handles /c create backup, write changes to INI and make WPS-restart if /restart specified /Log:file write screen output to file also /Cols:n Changes the count of columns on screen (only in VIO-window). /Rows:n Changes the count of rows on screen (only in VIO-window). /Logdel Shows and logs only handles which removed. as default all handles are listed /Nologo Display no logo. /back force backup if /c not specified /rest restore from backup and restart WPS /? Show this screen The Response file can contain three sections. These can in any order occur, may however only once occur. The sections begin with a keyword. The following keywords are possible: [Parameters] [Handles] [FolderPos] Upper and lower case letters is all the same. In section [Parameters] the same parameters can be indicated as on the command line. A parameter however only either on the command line or in the file. Lines with # at the start are ignored. In section [Handles] one can indicate as for scanning of Handles as file objects to be proceeded is. Normally all Handles is deleted except those by drives. However only, if they are not used in the os2.ini. In the section [Handles] can be indicated now per line a path, followed by the keyword "delete" or "ignore". Paths with blanks must be included in "". Wildcards as * and ? are possible. Upper and lower case letter is not considered. In section [FolderPos] one can indicate which PM_Workplace:FolderPos to folder pos always deleted or from an automatic deletion to be excluded be supposed. The structure and parameter are as with [Handles]. For PM_Abstract:FldrContent, PMWP_ASSOC_TYPE, PMWP_ASSOC_FILTER, PMWP_ASSOC_CHECKSUM and I will insert occasionally further sections to PM_Workplace:Startup. Example for Response-File: [Parameters] /cols:210 /DelFldPos /multipass /restart /c [Handles] \\SERVER09\SERVER\APP\OS2 ignore \\SERVER09\SERVER\APP\OS2\EURAPM2 del N:\PFADE\DLL\CATABLE.DLL del G:\COMM\TCPIP\SOUTHSIDE\PMINEWS\HASH.OUT del G:\COMM\TCPIP\SOUTHSIDE\PMINEWS del G:\COMM\TCPIP\SOUTHSIDE* del [FolderPos] G:\COMM\FAXWORKS\FAXDAT\FX000???.FAX del G:\DEVELOP\IBMCPP\SAMPLES\TOOLKIT\** del I:\DevCon\* del H:\QUELLEN\*.* del Legend for Log-file: 8879 0000 ? 0 D None --- Y: 27A8 8879 ? 0 ? FldPos --- Y:\XXX ³ ³ ³ ³ ³ ³ ³ ÀÄÄ Path ³ ³ ³ ³ ³ ³ ÀÄÄÄÄÄÄ del or not ³ ³ ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ where handle be found ³ ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ D=drive, x=other, ?=not checket ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ error num, 0 is no error ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ path (handle) type, ?=not checket ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ parent handle, if 0 than root ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ handle For error number type on command line "help number", e.g.: "help 21" Handle found in: ObjLoc PM_Abstract:Objects ObjHandle PM_Abstract:Objects ObjShadow PM_Abstract:Objects - WPShadow ExeName PM_Abstract:Objects - WPProgramRef ObjWorkDir PM_Abstract:Objects - WPProgramRef MMShadow PM_Abstract:Objects - MMShadow ClassUnk PM_Abstract:Objects - unknown class FldCont PM_Abstract:FldrContent Temp PM_Workplace:Templates Location PM_Workplace:Location FldPos PM_Workplace:FolderPos AType PMWP_ASSOC_TYPE AFilter PMWP_ASSOC_FILTER AChecksum PMWP_ASSOC_CHECKSUM Startup PM_Workplace:Startup None handle not found in os2.ini