Is there a command in Powershell to jump to the next folder? My problem is that Powershell should search a folder with several subfolders for a particular file and when it is found moves it. Example:
C:\Test\1\error\test.data
This should be moved to
C:\Test\1\data
and then I go back with cd. . cd. .
C:\Test\
Here I would need a command that jumg automatically in
C:\Test\2\error
And here’s my problem, how do I automatically get to the next folder without specifying it. So that I insert the command into a loop?
Thanks for the help :)