Jump to content

Recommended Posts

Posted (edited)

hi folks

need 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 YYY

The 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 thanks

RIshav

ps. and oh, I can't use a normal path like "C:\XX\". I have to start out from the script dir.

Edited by Rishav
Posted

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.

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...