removeShutdownFile - Remove file from project shutdown files - MATLAB (original) (raw)

Main Content

Remove file from project shutdown files

Syntax

Description

removeShutdownFile([proj](#mw%5F499b64f6-76a9-4031-902b-0609b8f60cd2),[files](#d126e1419715)) removes the files from the shutdown files in the specified project.

example

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

openExample("matlab/TimesTableProjectExample") proj = currentProject;

Specify a file of executable MATLABĀ® code to run as the project shuts down. Automatically run the file when the project closes, by making it a shutdown file.

filepath = fullfile("utilities","runTheseTests.m"); addShutdownFile(proj,filepath);

Remove the shutdown file. The code no longer runs when the project shuts down.

removeShutdownFile(proj,filepath);

Input Arguments

collapse all

Path of the files to remove from shutdown, specified as a string array or cell array of character vectors.

Version History

Introduced in R2019a

expand all

Starting in R2025a, the removeShutdownFile function supports removing multiple files from project shutdown in one step.