Main Content

removeShutdownFile

Remove shutdown file from project shutdown list

Description

example

removeShutdownFile(proj,file) removes the shutdown file from the shutdown list in the specified project.

Examples

collapse all

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

matlab.project.example.timesTable
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.

Introduced in R2019a