here's my issue :
function Dummy ($path1, $fileName1) {
Write-Host "$path1$fileName1"
}
Dummy 'folder\', 'test2.exe'
result is :
folder\ test2.exe
I have just no idea why this whitespace is added. I tried different formatting option (trim, string formatting, even native .net one without result).
Regex kind of work as a "post issue" but is too extrem fo my usage (folder with whitespace in name)
Note that those option i tried work perfectly (or should i say "as expected" -_-') OUT of the function.
if anyone could tell me how dumb i am i'd be glad -_-'
NB : i keep adding a simple "hi" first line of this thread, it just get removed everytime so, sorry for this.