|
|
#1 |
|
Junior Member
|
Get File path and use as variable
How is this possible:
find an installation of a program by searching for the filename (program could be installed in any folder: $programfiles\abc1 $programfiles\abc2 Wherever it is installed, the file will exist. Then, set the path to where it is found, i.e. if it's in abc1 then copy entire directory structure from abc3 to abc1. Is this possible / how is it? |
|
|
|
|
|
#2 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,917
|
Try one of this:
http://nsis.sourceforge.net/Search_f..._or_Directory_(Alternative) http://nsis.sourceforge.net/Search_For_a_File http://nsis.sourceforge.net/Locate_plugin Just don't expect Windows keep track of every file you copy or install, without registering its path. * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE. |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You don't need to use any recursion for this. Just a simple loop will do:
code: Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|