Originally posted by mcme
mcme,
To rephrase the post above, you already know the location of your target folders relative to the appfolder.
In windows (and most other OSs), the folder you are currently in is aliased with "."
The folder one level above the folder you are currently in is aliased with ".."
You can test this out for yourself at a command prompt (DOS) with
Code:
cd . or cd ..
Lets assume that you have the following:
C:\Program Files\YourApplication\FolderA\ (this is your %AppFolder%)
C:\Program Files\YourApplication\FolderB\ (this is the folder you want to update)
1. Get the %AppFolder% value
Code:
str_AppFolder = %AppFolder% Which equals C:\Program Files\YourApplication\FolderA\
Code:
%AppFolder% .. "\\..\\" Which equals C:\Program Files\YourApplication\
Code:
%AppFolder% .. "\\..\\FolderB\\" Which equals C:\Program Files\YourApplication\FolderB\
Code:
%AppFolder% .. "\\..\\..\\" Which equals C:\Program Files\
Code:
%AppFolder% .. "\\..\\FolderB\\FolderC\\" Which equals C:\Program Files\YourApplication\FolderB\FolderC\
Comment