Ptica Posted February 22, 2010 Share Posted February 22, 2010 Hello, I need help with reading ini file. I have the following: ini file: [settings] query= Select * from " & $servername & " where date=curdate()" Script: tried both: $queryLogger='"' & IniRead(@ScriptDir & "\" & $optionsFile, "settings", "query_logger", "")&'"' and $queryLogger=IniRead(@ScriptDir & "\" & $optionsFile, "settings", "query_logger", "") As a result I get : "SELECT * FROM " & $servername & " where date = curdate()" $servername is not resolved. If I write $queryLogger="SELECT * FROM " & $servername & " where date = curdate()", then I get the following string: SELECT * FROM MyServerName where date = curdate(). Could somebody explain what I'm doing wrong? I could not find the answer in the forum. Thanks in advance Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now