how to delete .dll file in Matlab?

조회 수: 1 (최근 30일)
Hossam Elbaz
Hossam Elbaz 2020년 7월 21일
댓글: Walter Roberson 2023년 3월 9일
After Code Generation a dll file is created in slprj folder and to regenerate code I must delete this slprj folder, the matlab refuses to delete the folder as it contains a dll file
so please how to delete any dll file in Matlab as the only way to delete is to close Matlab then delete the required files and folders then open Matlab again
  댓글 수: 3
Hossam Elbaz
Hossam Elbaz 2023년 3월 9일
not working too
Walter Roberson
Walter Roberson 2023년 3월 9일
https://www.mathworks.com/help/matlab/ref/unloadlibrary.html might possibly help

댓글을 달려면 로그인하십시오.

답변 (1개)

Puru Kathuria
Puru Kathuria 2020년 8월 12일
function [ st, msg ] = cmd_rmdir( folderspec )
% cmd_rmdir removes a directory and its contents
% Removes all directories and files in the specified directory in
% addition to the directory itself. Used to remove a directory tree.
narginchk( 1, 1 )
dos_cmd = sprintf( 'rmdir /S /Q "%s"', folderspec );
[ st, msg ] = system( dos_cmd );
end
Please try the above mentioned function if you are using Windows.
For more information on rmdir check out this link.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by