Delete-Section-s
Command Description
Delete the specified section under the INI config file
Command Prototype
INI.DeleteSection(sFile, sSection)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sFile | True | path | '''C:\Users''' | The path of the INI file |
sSection | True | string | "" | Name of the section in the INI file to be deleted |
Demo
/************************************Remove subsection************ ************************
Command prototype:
INI.DeleteSection('''C:\Users''', "")
Input parameters:
sFile--path where the INI configuration file is located
sSection--name of the section to delete the INI configuration file
Outgoing parameters:
None
********************************************************************************/
Dim sFile='''C:\Users\Chance\Desktop\testINI\data.ini'''
Dim sSection="RPA"
INI.DeleteSection (sFile, sSection)