ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Directory of folders inside a folder limited by depth showing complete path

<< < (2/3) > >>

questorfla:
X16Wda:
Maybe.  I don't know a lot about using ?gnu?  I can try.  I have a working solution but it is tedious.  Worse.  after trying so many, when this on worked, it was a sort of "half worked" so I did not look at the results till later.  It got me by but only with a lot of editing.  In my comment where I show what I would "like" about two entries above yours, it shows what I can usually get and what i need to end up with.  I ran something that created what I THINK was actually an error report but it still was perfect after editing.  the lines read "processing "                                <   c:\wamp\htdocs\websites\"The wwwsitename"\emptydirectory\usersname\foldermname  >  This can be multiple edited to remove the first 3 directories and remove the "emptydir" and reverse the "/"'s leaving me with all I wanted :)  now I have to figure out which batch file did it.  I was testing too many.  GSAR isn't in any of the addon packs I have found yet  the commands have to run in a windows environment

questorfla:
Duh.  I just saw your link getting it now.
Also in looking I found this:          Microsoft SFU (services for Unix).  The 7zip file only had the find command but I needed that too.  I am hoping the Microsoft download has the rest.  Even comes with a windows installer

x16wda:
The Unix utils "find" is attached to my message (7-zipped), since it comes in a much bigger package and it is buried inside that package.  I think also that SFU is really much bigger than you want and is more intrusive on your system, especially when you just want a little utility.  The gsar program was linked in the text of the message, it's at http://home.online.no/~tjaberg/, I can attach it too if you have any trouble getting it.

The gsar lines can be edited and modified if they don't do what you need, just let me know!

questorfla:
 ;D  I am SO out of it.  I swear.  X16 I hope you are on tonight.   ;D
I need the smiley where he hits his head on the wall.  This whole setup you sent was a way to fix the output.  I tried everything I knew but it fiercely resisted all attempts to create anything.
After "hitting my head on the wall " a few times, I finally read the instruction for the Unix commands.  Your proggy was a FIX for my output.  :)  OK.
Well, I learned a few interesting facts anyway.  Some (maybe not all) of those commands work fine when just dropped into the windows directory so they can be found in the path.
find and gsar work perfectly when done that way.  All I have to do now is find the batch file that created the file that needed to be edited.  I bet I can even merge the two and in the end get what I want.  That was worth the effort.  I got to laugh at myself for being so nearsighted.  The original batch is here somewhere but I have maybe 50 that all work to some degree.  Anyway, your input was a welcome surprise.  I am sure I will have other uses for all these new commands now

questorfla:
WOW   :P           I found my way back here.  X16.  If you are on or someone else familiar with his reply.  U was able to use the exact layout from find by running it further down the tree.  no need for the gsar.  however the UNIX output from find uses a "." to separate what I need to be single lines.  each entry is just added to the next with the . separating them.  is there a similar utility that would change the "dot" to be a "carriage return"?  convert a UNIX style output to a DOS style output?  That is all it needs now.  Your Unix command cut this whole thing down to 15 characters on a command line. except for the UNIX output/.

Adding this in case it helps someone else.  Open the .txt file created with any editor other than notepad  (I guess)
I used notepad++ and it opened right up with the lines exactly as I need them.  Thanks for everyones help .
I now have an instant tool to provide a report that used to take e close to 30 minutes to build one line at a time.  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version