Sign in to follow this  
Followers 0
Rishav

Creating File Path by Concatanating Filename and Folderpath

2 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0