|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AID. - DeepSeek > !Folder Operations > AID. - Artificial Intelligence DeepSeek Utility |
MiniRobotLanguage (MRL)
AID.GetFolder
Retrieve the Default Folder for DeepSeek Operations
Intention
GetFolder Command: Retrieving the Default Folder
The GetFolder command retrieves the current folder path used by the DeepSeek system for file operations, such as saving API keys.
This is useful for verifying or utilizing the folder location in your scripts.
It’s part of the AID - DeepSeek API suite.
The GetFolder command fetches the current value of the AID_Folder variable, which is the default directory for DeepSeek file operations.
You can store this path in a variable or, if no variable is specified, it will be placed on the Top of Stack (TOS).
Retrieving the default folder is valuable for:
•Verification: Confirm the location where files are stored.
•File Operations: Use the path for reading or writing files in scripts.
•Debugging: Ensure the folder aligns with your script’s expectations.
The command can be called with or without a variable to store the result.
By default, AID_Folder is set to ?exeloc\AID_Folder\ unless changed via AID.SetFolder.
Example Usage
AID.GetFolder|$$FOL
DBP.Current Folder: $$FOL
AID.GetFolder
POP.$$FOL
DBP.Folder from Stack: $$FOL
The returned path always ends with a backslash (\).
Illustration
┌────────────────────┐
│ AID_Folder │
├────────────────────┤
│ ?exeloc\AID_Folder\│
└────────────────────┘
Retrieving the default folder path.
Syntax
AID.GetFolder[|P1]
AID.Get_Folder[|P1]
Parameter Explanation
P1 - (Optional) The variable where the folder path will be stored. If omitted, the path is placed on the Top of Stack (TOS).
Example
AID.SetFolder|C:\DeepSeek\Files\
AID.GetFolder|$$PAT
DBP.Current Folder: $$PAT
ENR.
Remarks
- The default folder is ?exeloc\AID_Folder\ unless modified by AID.SetFolder.
- The returned path always includes a trailing backslash.
Limitations
- Only one parameter is allowed; more will trigger an error (IF R01 > 2 THEN GOTO ero).
- The command does not verify folder existence or accessibility.
See also: