Coldfusion delete file in directory


















Navigate to the project in the left pane. Once you make some changes in any cfm in the project, a pop up displays asking you to save the project.

Give the project a suitable name and click Save. Create a folder named dir1 and upload a text file, myfile. Description Deletes the specified on-disk or in-memory file on the server.

Parameters Parameter Description filepath Pathname of the on-disk or in-memory file to delete. Usage Use this function to free the memory used by an in-memory file. Sign in to your account. Sign in. Active Oldest Votes. Raymond Camden Raymond Camden That's why i asked : — crosenblum.

It does exactly what i want and no more Just watch out with that directory path. If a user has any ability to modify set it then you will have to sanitize it to make sure there isn't any sort of.. Instead of writing a batch file and then executing it, I let ColdFusion do all the work. Matt Busche RKolosky RKolosky 3 3 bronze badges. You don't need to check the RecordCount - if it's zero the cfloop will just get skipped past anyway.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Related Hot Network Questions. Question feed.



0コメント

  • 1000 / 1000