View Single Post
  #13 (permalink)  
Old 08-31-10, 08:55
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,455
Thumbs down Wrong, very wrong.

Quote:
Originally Posted by maxtodoscripts View Post
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.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote