In the meantime, I am using...
Code: Select all
Run Program>CMD /c dir C:\photos\*.* /s /b /o:n > C:\filer\MyDirOutput.txt
c:\photos\2008\myphoto1.jpg
c:\photos\2008
I've tried various combination of the DOS sort command...
/o
/o:n
/on
/o:gn
... but no matter what I do I cannot get the output to show the directories before the files.
I'm trying to create an output file with a complete alpha sort that looks like the following:
c:\photos\2008
c:\photos\2008\myphoto1.jpg
c:\photos\2008\myphoto2.jpg
c:\photos\2008\myphoto3.jpg
c:\photos\2009
c:\photos\2009\myphoto1.jpg
c:\photos\2009\myphoto2.jpg
c:\photos\2009\myphoto3.jpg
c:\photos\2009\Zoo
c:\photos\2009\Zoo\myphoto1.jpg
c:\photos\2009\Zoo\myphoto2.jpg
Any direction here would be a big help!
-Richard