Forum Discussion
sumit_engineer
10 years agoOccasional Contributor
FilePath = "C:\Envi.ini"
Section = "Environment"
Function Read_INI(Section,FilePath)
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(FilePath) Then
Set ini = Storages.INI(FilePath)
ProjectPhase = ini.GetSubSection(Section).GetOption("ProjectPhase","")
Else
Read_INI = False
End If
End EnviFunction
NOTE : 1.Make Sure in your Enviormnet.ini File [ROOT] is added on the first line .
2.No Space betweeen ProjectPhase and = 1 .
'==================C:\Envi.ini================
[Root]
[Environment]
ProjectPhase=1
'==================Envi.ini================
Related Content
- 2 years agomattb