Indigo Rose Software
  #1  
Old 07-21-2005
bnkrazy's Avatar
bnkrazy bnkrazy is offline
Forum Member
 
Join Date: Oct 2003
Location: Richmond, VA
Posts: 143
Locate installed version

Is it possible to search recursively up a directory tree?

For example, I download all my updates into a folder called %Program Folder%\Updates\%ProgramVersion%\

I know that I can easily find the installed version by either A) jumping up two levels in the directory tree via a relative path or B) recurse the current path back up the tree untill I find my installed product.

I just don't know how to go about scripting either of the two options.

Is there a snippet of code somewhere that does a reverse directory recursion? A way to strip off the current folder and then continue up the tree? It sounds like it should be easy, but I don't know how to manipulate that _SourceFolder Path...which is ultimately what I need to do.

Thanks!
  #2  
Old 07-22-2005
bnkrazy's Avatar
bnkrazy bnkrazy is offline
Forum Member
 
Join Date: Oct 2003
Location: Richmond, VA
Posts: 143
Well, this isn't so much of an issue as the default script automatically checks the user's %Program Files%\%ProductName% directory. It should always find it based solely on that check alone... I also have it set to search all fixed disks if that fails, so I should be covered.

If I do figure out how to do it I will post the script here for all to see.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorry quick question Boolean slafta AutoPlay Media Studio 5.0 3 06-05-2005 01:37 AM
Determining what Version of Internet Explorer is Installed Desmond AutoPlay Media Studio 5.0 Examples 0 10-03-2003 11:59 AM
Verify Flash Player installed and correct version Geoffh AutoPlay Media Studio 4.0 1 07-10-2003 06:52 AM
HOWTO: Detect Acrobat Version Support AutoPlay Media Studio 4.0 Examples 0 10-22-2002 05:01 PM
INFO: Moving from the Trial Version to Commercial Version Support AutoPlay Media Studio 4.0 Examples 0 10-07-2002 09:52 AM


All times are GMT -6. The time now is 09:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software