• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

C#

please can anyone help me with the code to delete pictures from a folder using c#

".jpg");file.copy(importlocationidbox.text.tostring()imagefile
18th May 2020, 5:57 PM
silva
2 Answers
0
File.Delete: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.delete To delete a single file. Directory.GetFiles: https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles If you have to search files first. Directory.Delete: https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.delete If you just want to delete the complete folder.
18th May 2020, 6:46 PM
Manu_1-9-8-5
Manu_1-9-8-5 - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Issue with Sololearn Module Quiz Despite Correct Answers
2 Votes
I need help to solve this
0 Votes
Engineer Cloud
0 Votes
Project
0 Votes
Lua?
1 Votes
Hey what the research process order for them that I am telling you please order them and tell me answer
0 Votes
How to add comment in python?
0 Votes
Ayuda para insertar la imagen de portada y las melodĂ­as a mi ĂĄlbum alguien sabe cĂłmo
0 Votes
How do we code calculator
0 Votes