I have this simple command showing name and directory output in a textbox :
$textboxContenu.text = Get-ChildItem -Path $($folderbrowsermoderndialog1.SelectedPath) -Recurse | select Name,Directory | Format-Table -AutoSize | Out-String
If i RUN (F5) the form in powershell studio, it shows the full directory name with scrollbars in the textbox since the path is long:
Code: Select all
Name Directory
---- ---------
subf
Captivate AUTO-UPDATE.msi \\intra.zzzz.net\zzz\DepotDMLzzzt\Poste\Travail\zz25\POWzzLSTUDIO\DOSSIzzRE\szz
twetse.txt \\intra.zzzz.net\zzz\DepotDMLzzzt\Poste\Travail\zz25\POWzzLSTUDIO\DOSSIzzRE\szz
Code: Select all
Name Directory
---- ---------
subf
Captivate AUTO-UPDATE.msi \\intra.zzzz.net\zzz\DepotDMLzzzt\Poste\T...
twetse.txt \\intra.zzzz.net\zzz\DepotDMLzzzt\Poste\T...
Why is the EXE behaving differently than inside powershell studio and how do I get my full path?
Thanks!