Relative path for INI files - 07-18-2005 , 09:29 PM
I was wanted to read values from an INI file, and ran into the all too
familiar problem everyone seems to be having -- we can't change the
path of it dynamically. no biggy though, I thought i'd just use DTSRun
to launch the package, and ensure the ini file is in the same folder i
launch DTSRun from...
well, it worked, to an extent. i should say, it works for the 'data
file' type...my little test message box displays the whole file just
however, while it does FIND the ini file, it keeps saying "Error
string: Section 'General' not found." nasty! if i use absolute
addressing and point to the thing manually, it works fine, finds the
section header...why it doesn't work when i omit the path is beyond me.