A
Andrew
Hi,
I'm trying to find and delete all hidden files in a directory.
The hidden files are resource forks generated by Mac users on our
Network and all contain the filename format "._(filename).xls"
Since the Kill command won't work on Hidden files I have been playing
with the SetAttr and Kill commands in combination with wildcards to
find and delete instances of these files.
Assuming a hidden file is called ._Name.xls I figured that by
substituting a "*" for "Name" that would take care of things, but keep
getting the error message "Bad Filename or number".
Here is my code:
SetAttr "Path\._*.xls", 0
Kill "Path\._*.xls"
Where am I going wrong?
Is there a better way to do this?
Cheers
Andrew
I'm trying to find and delete all hidden files in a directory.
The hidden files are resource forks generated by Mac users on our
Network and all contain the filename format "._(filename).xls"
Since the Kill command won't work on Hidden files I have been playing
with the SetAttr and Kill commands in combination with wildcards to
find and delete instances of these files.
Assuming a hidden file is called ._Name.xls I figured that by
substituting a "*" for "Name" that would take care of things, but keep
getting the error message "Bad Filename or number".
Here is my code:
SetAttr "Path\._*.xls", 0
Kill "Path\._*.xls"
Where am I going wrong?
Is there a better way to do this?
Cheers
Andrew