Bonjour,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /??>
Je souhaite copier les fichiers du dossier
P:\BE\Thomas\essai au dossier P:\BE\Thomas\essai copiage. Pour cela j’ai créé un CheckedListBox et un ListBox et j’ai écris le programme suivant :
Imports
System.IO
Public
Class Form1
Private
Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
For
Each file AsStringIn Directory.GetFiles("P:\BE\Thomas\essai")
CheckedListBox1.Items.Add(file)
Next
For
Each file AsStringIn Directory.GetFiles("P:\BE\Thomas\essai copiage")
Le problème c’est qu’il n’y a pas d’erreur d’apres l’ordinateur mis quand je debug il m’écrit : The target file "P:\BE\Thomas\essai copiage" is a directory, not a file.