in my case i need to do updates on a application that you just copy into any folder under i.e. C: the application itself only need its own root path and the files in the subfolders to run...

at the same time thats the tricky part.. so i need to find first the path of this program and after that i can copy and overwrite the old files..

luckily the rootfolder, filenames and the subfolder structure is always the same... so i actually need to look for "root\appl.exe" anywhere on the C: if found the script should give me the path back

anyone able to give me a hint for this?