VB - Während CopyFile ProgressBar oder TextBox
Hallo ihr Lieben
Also ich kopiere eine Datei mittels des Befehls
Nun will ich während des Kopiervorgangs entweder eine möglichst schlichte ProgressBar oder eine MsgBox mit einer Meldung wie "Datei wird hochgeladen".
Mein bishieriger Code
Vielen Dank schon mal
rumdiidumdii
My.Computer.FileSystem.CopyFile
Mein bishieriger Code
OpenFileDialog1.Filter = "AVI (*.avi)|*.avi|PPS (*.pps)|*.pps"
If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
End If
strOldFile = OpenFileDialog1.FileName
'Der neue File Name wird aus altem Pfad ausgelesen
strNewFile = Path.GetFileName(strOldFile)
'Kopiert ausgewählte Datei in \\mu707175\Dateien\
My.Computer.FileSystem.CopyFile(strOldFile, "\\mu707175\Dateien\" + strNewFile)
Vielen Dank schon mal
rumdiidumdii
Please also mark the comments that contributed to the solution of the article
Content-Key: 155254
Url: https://administrator.de/contentid/155254
Printed on: April 25, 2024 at 00:04 o'clock
1 Comment