|
<< 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.SetFolder
Set the Default Folder for DeepSeek Operations
Intention
SetFolder Command: Configuring the Default Folder
The SetFolder command allows you to define the default folder where DeepSeek-related files, such as API keys, are stored.
This provides flexibility in organizing file operations within your scripts.
It’s part of the AID - DeepSeek API suite.
The SetFolder command updates the global AID_Folder variable with a user-specified folder path.
If the folder doesn’t exist, it is created automatically, ensuring a trailing backslash for consistency.
Customizing the default folder is valuable for:
•Organization: Store DeepSeek files in a specific location tailored to your project.
•Automation: Ensure file operations use a consistent directory without manual path specification.
•Portability: Adapt the folder location for different environments or users.
Provide an optional folder path as the parameter. If omitted, it defaults to ?exeloc\AID_Folder\.
The command ensures the folder exists by creating it if necessary, and always appends a trailing backslash.
Example Usage
' Set to a custom folder
AID.SetFolder|C:\DeepSeek\Files\
DBP.Folder set to C:\DeepSeek\Files\
' Set to default folder
AID.SetFolder
DBP.Folder set to ?exeloc\AID_Folder\
The folder is created if it doesn’t exist, and the path is standardized with a trailing backslash.
Illustration
┌────────────────────┐
│ AID_Folder │
├────────────────────┤
│ C:\DeepSeek\Files\ │
└────────────────────┘
Setting the default folder for DeepSeek operations.
Syntax
AID.SetFolder[|P1]
AID.Set_Folder[|P1]
Parameter Explanation
P1 - (Optional) The folder path to set as AID_Folder. If omitted, defaults to ?exeloc\AID_Folder\.
Example
AID.SetFolder|C:\DeepSeek\Files\
AID.Save_Key|sk-deepseek123456789
DBP.Key saved in C:\DeepSeek\Files\
ENR.
Remarks
- The folder path is trimmed of leading/trailing spaces and standardized with a single trailing backslash.
- If a file path is provided instead of a folder, the parent directory is used.
Limitations
- Only one parameter is allowed; more will trigger an error (IF R01 > 2 THEN GOTO ero).
- No validation is performed on folder accessibility beyond creation.
See also: