Rip through a folder and subfolder structure finding all "&" special characters and replace them with the text "and" (without the quotes of course)
Second Script
Rip through a folder and subfolder structure and remove ALL special characters from the filenames "!@#$%^&*()_+';:",./<>?`~. This should not leave a space where the special character was just simply remove the character.
Code: Select all
Eg: BEFORE: file&name.psd AFTER: filename.psd
Third Script:
Rip through a folder and subfolder structure and ensure that each FILE (not folder) has a set prefix_prefix_prefix_ in front of the filename
Code: Select all
Eg: BEFORE: filename.psd AFTER prefix1_prefix2_prefix3_filename.psd
(information is sensitive so I have simply left it as prefix1_prefix2_prefix3_ )
Final Script:
Rip through a folder and subfolder structure and find folders that have both a "model" and "oldmodel" folder within the folder then output a text file with a list of these offenders OR copy the root folder of these folders somewhere so that I can go in and look at them. Confusing so I will give example below.
Code: Select all
[color=#40BF40]This is the ideal folder structure[/color]
c:\Item1
c:\Item1\animation
c:\Item1\export
c:\Item1\model
c:\Item1\source
c:\Item1\texture
[color=#FF0000]This would be an offending structure that I need brought to my attention somehow (via list or copied somewhere)[/color]
c:\Item1
c:\Item1\animation
c:\Item1\export
[b]c:\Item1\model
c:\Item1\oldmodel[/b]
c:\Item1\source
c:\Item1\texture
Notice that this offending folder has BOTH model & oldmodel. If a folder has only 1 of these it is fine but if it contains BOTH of these folders I need it brought up.
That's it! As always you guys have my eternal thanks and Im learning a lot by looking at how you compile these scripts... not to mention you are saving me days of man hours with these scripts as I am looking at thousands and thousands of folders here.