File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- function userDir = getuserdir
2- % GETUSERDIR Retrieve the user directory
3- % - Under Windows returns the %APPDATA% directory
4- % - For other OSs uses java to retrieve the user.home directory
5-
6- if ispc
7- % userDir = winqueryreg('HKEY_CURRENT_USER',...
8- % ['Software\Microsoft\Windows\CurrentVersion\' ...
9- % 'Explorer\Shell Folders'],'Personal');
10- userDir = getenv(' appdata' );
11- else
12- userDir = char(java .lang .System .getProperty(' user.home' ));
1+ function userDir = getuserdir
2+ % GETUSERDIR Retrieve the user directory
3+ % - Under Windows returns the %APPDATA% directory
4+ % - For other OSs uses java to retrieve the user.home directory
5+
6+ if ispc
7+ % userDir = winqueryreg('HKEY_CURRENT_USER',...
8+ % ['Software\Microsoft\Windows\CurrentVersion\' ...
9+ % 'Explorer\Shell Folders'],'Personal');
10+ userDir = getenv(' appdata' );
11+ else
12+ userDir = char(java .lang .System .getProperty(' user.home' ));
1313end
You can’t perform that action at this time.
0 commit comments