• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
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 Réponses
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

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Python
0 Votes
đ™”đ™žđ™œđ™ł đšƒđ™·đ™Ž đ™žđ™œđ™żđš„đšƒ đ™Ÿđ™” đšƒđ™·đ™Ž đ™żđšđ™Ÿđ™¶đšđ™°đ™Œ
1 Votes
Can someone explain inline and block elements please
0 Votes