This document was translated from Chinese by AI and has not yet been reviewed.
Default Storage Location
Cherry Studio data storage follows system specifications. Data is automatically placed in the user's directory. The specific directory locations are as follows:
This can be achieved by creating a symbolic link. First, exit the application. Then, move the data to your desired location and create a symbolic link at the original location pointing to the new location.
@title CherryStudio Initialization
@echo off
set current_path_dir=%~dp0
@echo Current path:%current_path_dir%
set user_data_dir=%current_path_dir%user-data-dir
@echo CherryStudio data path:%user_data_dir%
@echo Searching for Cherry-Studio-*-portable.exe in the current path
setlocal enabledelayedexpansion
for /f "delims=" %%F in ('dir /b /a-d "Cherry-Studio-*-portable.exe" 2^>nul') do ( # Please change this to the actual name of the downloaded file. The names of files downloaded from the official website and GitHub are different.
set "target_file=!cd!\%%F"
goto :break
)
:break
if defined target_file (
echo File found: %target_file%
) else (
echo No matching file found, exiting the script
pause
exit
)
@echo Confirm to continue
pause
@echo Starting CherryStudio
start %target_file% --user-data-dir="%user_data_dir%"
@echo Operation finished
@echo on
exit
Structure of the user-data-dir directory after initialization: