Aug 18, 2017 02:38 PM
(This post was last modified: Aug 19, 2017 07:52 AM by zask.)
This is a trick I found, it will locate the deepest folder on the desktop no mater what directory segment its in.
Code
@echo off
for /d /r "%USERPROFILE%\desktop" %%# in (*) do (cd "%SYSTEMDRIVE%%%~p#")
for /d %%a in (*) do (cd "%%a")
echo %cd%
Pause
