Main Content

removeShutdownFile

Remove shutdown file from project shutdown list

Description

removeShutdownFile(proj,file) removes the shutdown file from the shutdown list 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

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Path of the MATLAB file to remove, including the file extension, specified as a character vector or string scalar. Specify the path relative to the project root folder. The file must be within the root folder.

Version History

Introduced in R2019a