Re: Looking for a freeware command line tool



I understand, however, this file system has been around 10 years, and is as
it is. A tool that can traverse into each subfolder and run a command (any
command) would avert the long path issue from the root, and doing a hundred
or more subst commands would be antiproductive.

--

Mike Matheny

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

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:uWw1cXb4GHA.3644@xxxxxxxxxxxxxxxxxxxxxxx
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
    ... for some command line tool that could execute certain commands ... in every subdirectory of a directory tree. ... Mike Matheny ... my employer in any way. ...
    (microsoft.public.windows.server.general)
  • Re: i think I flew into class c airspace accidentally without establishing communication
    ... An employer, googling the name, will now find this thread. ... attention and impressing him with the importance of assuming command ... 1: to have or exercise direct authority: GOVERN ... INSTRUCT both connote expectation of obedience and usually concern ...
    (rec.aviation.piloting)
  • Re: setvalue
    ... Contractor form and a query ... Click command opening the "frmFindContractor". ... double click on the text box containing the Contractor ID ... for the "employer ...
    (microsoft.public.access.macros)
  • Re: .NET console Application fails to execute from CMD.EXE
    ... I do not answer questions on behalf of my employer. ... programmer helping programmers. ... > sometimes return immediately with no error message just a command prompt. ...
    (microsoft.public.dotnet.framework)
  • Problems with "save as" to an external drive
    ... The regular Save command works fine. ... Repaired Disk permissions. ... Opened a new document from a subfolder on the external drive, ... the Documents folder on the external drive, and can "save," but can't ...
    (microsoft.public.mac.office.word)

Quantcast