Batch script to create a string from directory
I have a script that is looking for a filetype and then finding a string
in the directories.
dir /a-d /b /s *.file.filetype | findstr /v /i "string"
As a result I get dozens of directory paths that contain the string
C:\dir1\dir2\dir3\dir4\dir5\dir6\file1
C:\dir1\dir2\dir3\dir4\dir5\dir6\file2
...
...
...
How do I create a string from what dir4 is called?
No comments:
Post a Comment