我想做一個程序,檢查目錄中的特定文件類型,然後執行代碼,如果有任何找到該類型的文件。vb檢查特定的文件類型在目錄中,並執行代碼
我假設是這樣的:提前
For Each foundFile As String In
My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.MyDocuments)
(If any found files are, for example, "txt" files, then display their content.)
Next
感謝。
任何具體問題,或者你只是希望有人來爲你的代碼呢? – Tavo
真的沒有任何具體的問題。 – Anonymous