<< Click to Display Table of Contents >> Navigation: 2. Components > 3. System-Variable and Specialfolders > 3.3 Specialfolders |
MiniRobotLanguage (MRL)
Specialfolders
Intention
Specialfolders are also systemvariables.
• They are replaced on runtime with a real, physical folder-name.
• This folder name is evaluated at runtime on the target machine.
Specialfolders need to be written in small letters. Specialfolders need the "\" at the end of the name to be complete.
Parameter Explanation
Currently we support these OS-Specialfolders:
?wi\ - current windows-folder
?ws\ - windows\system32 - folder
?desktop\ - current user-desktop
?cdesktop\ - common desktop
?auto\ - current user-startmenu/autostart
?cauto\ - common startmenu/autostart
?fonts\ - (system) fonts folder
?startmen\ - current user startmenu
?cstarmen\ - common startmenu
?sendto\ - current user SendTo Folder
?progs\ - c:\programm files (x86) etc.
?temp\ - current user temporary folder
?startprog\ - current user\Startmenu\Programme\
?cstartprog\ - common \Startmenu\Programme\
?sysfolder(xx) - get Specialfolder by code (see code below)
?appdata\ - C:\Documents and Settings\<username>\Application Data\
And these Robot-specific folders:
?curdir\ - The current directory path
?path\ - The path to the Script itself
?pfad\ - The path to the Script itself (german)
?pattern\ - "?path\Pattern\" this is the default Path for Search-Patterns in the Scriptfile.
use '#INC:?path\Pattern\* for including the Pattern into an Executable.
?exepath\ - The path to the Main Robot-Executable
?exepfad\ - The path to the Main Robot-Executable (german)
?mainpath\ - The path to the main-script file
?lib\ - Path to the Library, see #LIB:
This path is different depending
if in Editor or in EXE-Mode.
In EXE-Mode this Path will always be:
?path\LibXXSPR\
From the Editor the Path will be what was specified with the #LIB: - Directive.
and only for compiled EXE's
?exeloc\ - Path of compiled EXE-Package
Under x64 OS (Vista, Win 7 and higher) you have:
?progs64\ - c:\programm files\
?ws64\ - c:\windows\System32\
?ws\ - c:\windows\SysWOW64\
And here are the Codes for ?sysfolder(xx):
Prefix with &H (hexadezimal).
Example: ?sysfolder(&H0A)\ -> Recycle Bin
00 - <desktop>
01 - Internet Explorer (icon on desktop)
02 - Start Menu\Programs
03 - My Computer\Control Panel
04 - My Computer\Printers
05 - My Documents
06 - <user name>\Favorites
07 - Start Menu\Programs\Startup
08 - <user name>\Recent
09 - <user name>\SendTo
0a - <desktop>\Recycle Bin
0b - <user name>\Start Menu
0d - "My Music" folder
0e - "My Videos" folder
10 - <user name>\Desktop
11 - My Computer
12 - Network Neighborhood
13 - <user name>\nethood
14 - windows\fonts
15 - Templates
16 - All Users\Start Menu
17 - All Users\Programs
18 - All Users\Startup
19 - All Users\Desktop
1a - <user name>\Application Data
1b - <user name>\PrintHood
1c - <user name>\Local Settings\Applicaiton Data (non roaming)
1d - non localized startup
1e - non localized common startup
1f - COMMON FAVORITES
20 - INTERNET CACHE
21 - COOKIES
22 - HISTORY
23 - All Users\Application Data
24 - Windows-Directory
25 - System-Directory
26 - C:\Program Files
27 - C:\Program Files\My Pictures
28 - USERPROFILE
29 - x86 system directory on RISC
2a - x86 C:\Program Files on RISC
2b - C:\Program Files\Common
2c - x86 Program Files\Common on RISC
2d - All Users\Templates
2e - All Users\Documents
2f - All Users\Start Menu\Programs\Administrative Tools
30 - <user name>\Start Menu\Programs\Administrative Tools
31 - Network and Dial-up Connections
35 - All Users\My Music
36 - All Users\My Pictures
37 - All Users\My Video
38 - Resource Direcotry
39 - Localized Resource Direcotry
3a - All Users OEM specific apps
3b - USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning
3c - unused
3d - Computers Near Me (computered from Workgroup membership)
8000 - combine with other numbers to force folder creation
Example
' See the Printout in the Text-Area of the Editor.
' The path to the Script itself
VAR.$$PFA=?path\
DBP.$$PFA
' User-Profile
VAR.$$PFA=?sysfolder(&H28)\
DBP.$$PFA
VAR.$$PFA=?mainpath\
DBP.$$PFA
VAR.$$PFA=?cstartmen\
DBP.$$PFA
VAR.$$PFA=?progs\
DBP.$$PFA
VAR.$$PFA=?cdesktop\
DBP.$$PFA
VAR.$$PFA=?ws\
DBP.$$PFA
VAR.$$PFA=?wi\
DBP.$$PFA
ENR.
Remarks
-
Limitations:
-
See also:
•3.5 Hexadezimal, Decimal and Binary and more
•3.6 Using Quadrant-Coordinates