Hi @Punkasur ,
maybe this script will help. Just modify $maxCount
value with the highest folder number. The variable $path
contains the full smb share path, for instance \\servername\share\folder08
You code needs to be added below or instead of the #add your code here - $path contains the smb name
$maxCount = 19
$a = 1
Do {
$b = '{0:d2}' -f $a
$path = "\\servername\share\folder" + $b
$path
# add your code here - $path contains the smb share name
}
While (++$a -le $maxcount)
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten