hello
Sorry my english is not so good
i have a question / problem with the browse folder function
when i choose a folder and set a variable with this folder , adding a subfolder the path is ok
$Back_Rec_Path = $folderbrowserdialog2.SelectedPath
$global:DestPath = $Back_Rec_Path + "\BACKUP\" + $Env:USERNAME # zb.: C:\Backup\Username...
the $destpath variabe is then ok, like d:\test\backup\
but when i choose a root drive like d:\ the $destpath is d:\\backup
now i have to backslash
what i make wrong
browse folder function problem
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: browse folder function problem
hi
thx
But can you explain what this line means
what means system.io.path
$global:DestPath = [system.io.path]::Combine($Back_Rec_Path.'BACKUP',$Env:USERNAME)
thx for your support
thx
But can you explain what this line means
what means system.io.path
$global:DestPath = [system.io.path]::Combine($Back_Rec_Path.'BACKUP',$Env:USERNAME)
thx for your support