in reply to Re^3: Test for directory entries and exit if certain conditions are met?
in thread Test for directory entries and exit if certain conditions are met?

OK. Again. It is Windows only:
It is a documentation base with many files and directories that has grown over the years.
The "users" are only sysadmins. But there is documentation from ex-users which left the company many years ago. So a "user" thought it might be important that this and that file or directory is first in "Explorer View". So he named it e.g.

"!!!My Important File/Directory please pay A T T E N T I O N A L L ! +!!!" or: "%20%My%20%reports%20downloaded%20document%20.pdf" (Which seems to come from downloaded documents where html is in the document name)

As a "new user", which joined the company recently i am asked or commanded ;-) to sort and bring "order" to it., cause this is outdated (it was done back in 2001 e.g.) i want to eleminate those "not illegal" but "hard to read" "file- and directorynames *and afterwards* sort it manually. But i *d o n t* want to do that by hand on thousands of files (namely: Files: 15624 Files 15.810.523.308 Bytes...)
And yes i want to run the script on a regularly basis and the other sysadmins are informed that maybe some old links are broken, but its no problem ...

Thanks in Advance MH
  • Comment on Re^4: Test for directory entries and exit if certain conditions are met?
  • Download Code