Count the Number of Characters in a Full FIle Path?
- by Richie086
I need to be able to count the number of characters in a full path to a file in windows. How I am currently accomplishing this task is as follows:
Open a command prompt
cd to the directory in question (for example c:\CruiseControl\ProjectArtifacts\ProjectName)
type the following command
dir /s /b output.csv
Open the resulting output.csv file in excel.
use the =LEN() function in excel to count the number of characters per row as listed in the output.csv file.
Does anyone know of an explorer shell extension, or some 3rd party tool that could preform this function without me having to manipulate the output from dir in excel? Is there some easier way to go about doing this? The root of the issue I am having is the ~260 character file path limit in Windows. I am trying to analyze which paths are approx ~260 characters so I can shorten them to avoid getting this error.