Can I use relative paths in favorite settings?

Yes. You can enter path such using the .. (parent directory) and \ (root directory) symbols in favorite locations or advanced settings. Relative paths are "expanded" based on the current QAP working directory (see What's the QAP working directory?).

In the following table, the relative paths are expanded as if the working directory was "M:\MyTools\QAP\".

Relative path Expanded path
..\Editor\MyNotepad.exe M:\MyTools\Editor\MyNotepad.exe
..\..\setup.ini M:\setup.ini
\MyTools\MyDocs M:\MyTools\MyDocs

That way, a user having to run various tools on a host PC can carry a set of apps on a USB drive or key and use Quick Access Popup to easily launch these tools regardless of the drive letter assigned to the USB device by the host system. Combined with the use of system environment variables and special folders to easily access host PC's system folders and user's data, this make QAP the perfect tool for tech support users.

Relative paths can be used in favorite locations,  advanced settings Parameters, Launch with this application and Start in. It can also be used for icons with the Edit icon resource link in the Menu Options tab of the Add/Edit favorite dialog box.

You can also enter a location without path. In this case, the file is searched in the PATH environment variable directories or in app paths in the Windows registry. In these examples, the folders in the resolved path column are assumed to be in the PATH variable. If you enter a location without a file extension, it is searched with all executable extensions in the PATHEXT variable: .COM; .EXE; .BAT; .CMD; .VBS; etc.

File without path Resolved path
Shell32.dll C:\Windows\System32\Shell32.dll
Notepad.exe C:\Windows\Notepad.exe
Notepad C:\Windows\Notepad.exe

 

Please use the new QAP Support Forum to ask questions or post comments.