Re: Looking for a freeware command line tool

Tech-Archive recommends: Fix windows errors by optimizing your registry



It seems your post has changed directions. Initially you asked
for some command line tool that could execute certain commands
in every subdirectory of a directory tree. Now you complain
about being unable to reach the far branches of a excessively
long directory tree. This is why I asked for further details.

This phenomenon has nothing to do with cacls.exe or any
other command. It is a limitation of the operating system: The
sum of path+file name cannot exceed 255 characters. So how
are they created? Simple: By substitution or by mapping. When
you run either of these commands

subst x: d:\SomeFolder\Folder1\Folder2\Folder3\Folder4\Folder5

net share YYY=d:\SomeFolder\Folder1\Folder2\Folder3\Folder4\Folder5
net use y: \\YourServer\YYY

then drives x: and drive y: are subject to the same 255 character
limitation, which will extend the depth of the tree d:\SomeFolder.
This is also the method you must use to access such deep folders
after such long branches have been created.

A much better way is to place information inside files rather than
into file or folder names.

"Mike Matheny" <mikemathenyathoustondotrrdotcom> wrote in message
news:uMc7azX4GHA.3604@xxxxxxxxxxxxxxxxxxxxxxx
I can't possibly see what is vague about this post - MS allows paths to be
created that cannot be accessed via MS tools! That is a fact! CACLS fails
trying to apply permissions to these overly long paths. Either MS needs
to
NOT let these paths to be created, or write a damn tool that can handle
them!

--

Mike Matheny

Views expressed herein do not reflect or represent
my employer in any way.

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:OCL7q2O4GHA.3452@xxxxxxxxxxxxxxxxxxxxxxx
Your reply is too vague to offer any feasible suggestions.


"Mike Matheny" <mikemathenyathoustondotrrdotcom> wrote in message
news:OzMxagL4GHA.1568@xxxxxxxxxxxxxxxxxxxxxxx
Well, we have paths on our servers that are apparently valid lengths
(they
allowed them to be created) but when running cacls or xcacls, the choke
on
the length. I have tried the xcacls.vbs script, which navigates to each
subfolder and performs the actions, but it runs all weekend long -
hoping
to
find something a little faster.

The find idea was suggested by a Unix admin here.

--

Mike Matheny

Views expressed herein do not reflect or represent
my employer in any way.

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:uYD%23xru3GHA.2420@xxxxxxxxxxxxxxxxxxxxxxx

"Mike Matheny" <mikemathenyathoustondotrrdotcom> wrote in message
news:%23dYA0Yo3GHA.4648@xxxxxxxxxxxxxxxxxxxxxxx
Looking for a freeware command line tool that will let me run a
program
on
every file I select throughout a complete folder structure - found a
program
named Global doing a search on the internet, but can't find the
program!

--

Mike Matheny

Views expressed herein do not reflect or represent
my employer in any way.

Can you give an example of what you're trying to do?










.



Relevant Pages

  • Re: Looking for a freeware command line tool
    ... A tool that can traverse into each subfolder and run a command (any ... Mike Matheny ... my employer in any way. ...
    (microsoft.public.windows.server.general)
  • Re: 890923 causes application crahes
    ... Pat may be giving you the right idea with the wrong directory tree ... it is a good idea to be registering the *copies* of the .dlls which are ... commands will be just enter in the command line of a cmd window: ... a useful subset of all registerable files: ...
    (microsoft.public.windowsupdate)
  • r197748 - base/stable/7/bin/sh/ 7.2-STABLE i386
    ... I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway. ... Recently I have been noticing strange happenings of what I believe to be coming from the latest revision of /bin/sh. ... After issuing the above command the process waits for the list of directories to be collected and ends by bombing out with pam timeout error. ... Also once it gets started you can not ^C the process until it has run the full directory tree. ...
    (freebsd-stable)
  • Re: recursive shell commands, is there a simple one?
    ... > directory tree. ... I already have a script which can modify the ... > standard unix command to do it. ...
    (comp.unix.shell)
  • recursive shell commands, is there a simple one?
    ... directory tree. ... I could write a script that would do something like this, ... standard unix command to do it. ...
    (comp.unix.shell)