Hirdetés
- Poco X8 Pro Max - nem kell ide sem bank, sem akkubank
- Xiaomi 14T Pro - teljes a család?
- Ma megérkeztek Magyarországra is a Vivo V70-ek
- Xiaomi 17 Ultra - jó az optikája
- Honor Magic V5 - méret a kamera mögött
- Qualcomm lapkával és nagyobb teleppel várható a CMF Phone 3 Pro
- Google Pixel topik
- Xiaomi 17 - még mindig tart
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Redmi Note 14 5G - jól sikerült az alapmodell
Új hozzászólás Aktív témák
-
wwlaci
csendes tag
válasz
Gregorius
#1014
üzenetére
Szia!
találtam egy ilyen megoldást, de nem tudom, hogyan tudom
megjeleníteni ennek az eredményét listboxban.Imports System.Collections
Imports System.IO
Imports System
Public Class Form1Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End SubPrivate Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
End Sub
End ClassPublic NotInheritable Class Directory
Public Class RecursiveFileProcessorPublic Overloads Shared Sub Main(ByVal args() As String)
Dim path As String
For Each path In args
If File.Exists(path) Then
' This path is a file.
ProcessFile(path)
Else
If System.IO.Directory.Exists(path) Then
' This path is a directory.
ProcessDirectory(path)
Else
Console.WriteLine("{0} is not a valid file or directory.", path)
End If
End If
Next path
End Sub 'Main' Process all files in the directory passed in, recurse on any directories
' that are found, and process the files they contain.
Public Shared Sub ProcessDirectory(ByVal targetDirectory As String)
Dim fileEntries As String() = System.IO.Directory.GetFiles(targetDirectory)
' Process the list of files found in the directory.
Dim fileName As String
For Each fileName In fileEntries
ProcessFile(fileName)Next fileName
Dim subdirectoryEntries As String() = System.IO.Directory.GetDirectories(targetDirectory)
' Recurse into subdirectories of this directory.
Dim subdirectory As String
For Each subdirectory In subdirectoryEntries
ProcessDirectory(subdirectory)
Next subdirectoryEnd Sub 'ProcessDirectory
' Insert logic for processing found files here.
Public Shared Sub ProcessFile(ByVal path As String)
Console.WriteLine("Processed file '{0}'.", path)
End Sub 'ProcessFile
End Class 'RecursiveFileProcessor
End Class
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Milyen notebookot vegyek?
- E-roller topik
- Fejhallgató erősítő és DAC topik
- Poco X8 Pro Max - nem kell ide sem bank, sem akkubank
- Xiaomi 14T Pro - teljes a család?
- Facebook és Messenger
- Autóápolás, karbantartás, fényezés
- Konzolokról KULTURÁLT módon
- Napelem
- Óriási ugrás: teszten az ASUS Zenbook A16 és a Snapdragon X2
- További aktív témák...
- Elektromos Roller KIXIN HX X8
- Garis GAMER PC AMD Ryzen 9 7900/ASRock X870E TAICHI/32 GB DDR5 6000 MHz/2 TB M2 SSD
- ASUS PRIME H270-PRO alaplap (LGA1151, DDR4, ATX)
- Intel Core i7-7700 (4 mag / 8 szál, 3.6 - 4.2 GHz, LGA1151)
- L13 Yoga Gen3 2-in-1 13.3" FHD+ IPS kihajth érintő i5-1245U 16GB 256GB ujjlolv IR kam aktív toll gar
- Dell Precision 3571 i7-12700H 32GB 1000GB FHD RTX T600 4GB 1 év teljeskörű garancia
- Bontott 0perces MacBook Air 15" M4 10C/10G 16GB 256GB Gar.: 1 év
- Bomba ár! Lenovo ThinkPad X280 - i5-8G I 8GB I 256SSD I 12,5" FHD Touch I HDMI I CAM I W11 I Gar!
- Apple iPad mini 6 A15 (2021) 64GB karcmentes - 100%-os akku
- ÁRGARANCIA!Épített KomPhone Ryzen 7 7700X 32/64GB RAM RX 9070 16GB GAMER PC termékbeszámítással
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

