Rishav Posted March 22, 2009 Posted March 22, 2009 (edited) hi folksneed some help on a simple problem.I have a folder path.i have a file name saved as an entry in an ini file(inside the aforementioned folder)I need to make a file path by concatenating the two.the ini file is named "Main Ini File.ini" with details as;[INI File] file name=File 01.csv File Details= XXX YYYThe code I have written is;$INIfile = "..\..\input files\maintain data\Main Ini File.ini" $EntryName = IniReadSection($INIfile, "INI File" ) $TargetDIR="..\..\input files\Target\" $FilePath=($TargetDIR & $ EntryName[1][1])predictably its failing.any idea where I am going wrong?regards and thanksRIshavps. and oh, I can't use a normal path like "C:\XX\". I have to start out from the script dir. Edited March 22, 2009 by Rishav
Rishav Posted March 22, 2009 Author Posted March 22, 2009 OK disregard this question folks. After spending an hour on debugging i reached no conclusion, but the moment i opsted the thhread i found that it was a messed up file name. i feel frakking retarded. grrr.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now