Ben Samuals said:
I work with some file systems that are really deep as far as directories are
concerned. for ex.
d:\test\122\123\1\test1\... on and on. Working with these long dirs makes
working within a cmd prompt tough moving everything to the next line. Is
there a way to keep this line short so it would read:
d:..\test1
In addition to the previous tips,
expand the window size. Working on a notebook with 1024*768 screen res.,
my cmd window has a size of 120*60 characters using a rasterfont of 8*16
Create a shortcut with these changed settings or use "mode x,y"
To see a very long path in a structured manner, you may use this batch.
I named it ~.cmd for shortness, If you don't like this cause of the unix
home path, maybe ICD.cmd for indented CD is an alternative. It is
limited to ten folderlevels but may be expanded.
==screen==copy=========================================================
E:\Dokumente und Einstellungen\tackemat\Eigene Dateien\Eigene Bilder>~
E:
-\Dokumente und Einstellungen
--\tackemat
---\Eigene Dateien
----\Eigene Bilder
E:\Dokumente und Einstellungen\tackemat\Eigene Dateien\Eigene Bilder>
==screen==copy=========================================================
::~.cmd::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off & setlocal
set /A Count=0 & set Pref=----------
call :CD "%CD%"
goto :eof
:CD
echo/%~d1
for /F "tokens=1-10 delims=\" %%A in ("%~pnx1") do (
call :Loop "%%A" "%%B" "%%C" "%%D" "%%E" "%%F" "%%G" "%%H" "%%I" "%%J")
goto :eof
:Loop
set /A Count+=1
if "%~1"=="" goto :eof
call echo/%%Pref:~0,%Count%%%\%~1
shift
goto :Loop
::~.cmd::::::::::::::::::::::::::::::::::::::::::::::::::::::::::