dir /s /on /b /a:d > list.txt
This one is close, about as close as I have come.
the output though is "too complete" as I only need one line for each folder or better stated
I need one line showing the first occurrence of the file index.php, then skipping to the next subdirectory and listing the same thing there.
I convert these to web-links by reversing the "\" to "/" and replacing the c:\"path"\subdirectory\index.php with "
http://www."/subdirectory/index.php in notepad.
I had tried a program someone suggested here and thought it was working but it turned out not to be quite what I needed.
The "dir" command with the listed switches almost did it, but it lists every subdirectory under the main one.
It would almost be easiest to just list all directories and going just 1 level deep. Example Order: A, Aa, Ac, Ad, Ae, B, Ba, Bb, Bc, Bd D, Da,Db,Dc etc. Some may have 10 projects, some only 1.
If I copuld even get this list I could still replace the front end of each and even add the necessary text "index.php" to the end.
This is to create a clickable list of links that open webpages created by different people all stored on one main website. Only the site owner can enter at the top level. The others each have their own named folder containing all their projects. Each project can be entered directly via the "
www.path/index.php".
Several program I tried did TOO much, some not enough or had no easy way to save output as a text or preferably Word file (so the links would already be active)
Nothing fancy, just a quick list of clickable links and it seems I should be able to do it with the dir > command if I could just get the switches in the right order. It is important that it not continue to list ALL the index.php files in each site as there are more than one. The First one is the entry point.
the rest, I end up having to delete until it reaches the next subdirectory/first index.php file. Etc.
Thanks for anyone knowing where to add the text to show only the first occurrence of that file.
OR listing all the namedirs/subdirs but no further.