Link to home
Start Free TrialLog in
Avatar of the_ratzenator
the_ratzenatorFlag for United States of America

asked on

Script to find a file

I need a script to find a file located in the following location:

"C:\Documents and Settings\<username>\Application Data\Macromedia\Flash Player\www.macromedia.com\bin\ciscounifiedaddin6x5\ciscounifiedaddin6x5.exe"

What I want is for a script to search a user's profile until it finds the "ciscounifiedaddin6x5.exe" file, when it does find it, I want it to call on an a program to run an installation. I know how to write a script that can do this if the file was located in the Program Files location or C:\ or C:\Windows or some other static location, but since user profile directories are of course different, how do I tell the script to scan a user profile's hidden Application Data location until it finds this file? I dont want the script to keep scanning even after it finds the  "ciscounifiedaddin6x5.exe", I just want it to keep scanning UNTIL it finds even just one of these files, and if so, run a program. Your help is greatly appreciated.

Thank you

SOLUTION
Avatar of Hobett
Hobett
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of the_ratzenator

ASKER

Sorry to respond so late. Gorby was right, they all worked great. Thanks alot for your help and for the many options you all have provided. I will give you all points.