Quote:
Originally Posted by maxtodoscripts
hi lkbrwn,,,
i used ur script, please see LOGS below
+ dir1=Program Files/archive
+ cd D:
+ find 'Program Files/archive' -mtime +60 -type f
File not found - -MTIME
File not found - +60
File not found - -TYPE
File not found - F
+ exit 0
it seemed like it's using the find of command prompt as i've read its syntax
hi script and lkbrwn,,
it's ok to use for loop because i'm actually creating the scrip for multiple directory,, i just first tried to one...
hi script,,
i used ur scrip, the error was "find: invalid switch"
|
You are doing something WRONG, both my script and script's script work.
Are you using cygwin to execute? and are you saving the script in "Unix" format?
Show us your script.

PS: And it is
NOT ok to loop because the find command already recourses the sub-directories.
