Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Verzeichnisse Kopieren in Visual Basic

Empfohlene Antworten

Veröffentlicht

hallo hab hier grade mal n test gemacht und zwar wollte ich pade kopieren. Die wunschverzeichnisse kann man in 2 TextBoxen reinschreiben.

Wenn ich debbugen lasse und Pfade eingebe macht er dies nicht allerdings bringt er mir auch keine exeption. nicht mal in output steht was drin. ich bin verwirrt :-( ! Hatte es folgendermaßen vor:


Dim Path As String

Dim Path2 As String

Path = TextBox1.Text

        Path2 = TextBox2.Text


        My.Computer.FileSystem.CopyDirectory(Path, Path2)

Ich habe die vermutung das die TextBox den "\" nicht annimmt, da dies ja ein Systemsonderzeichen ist.

Wäre schon wenn ihr was dazu sagen könntet.

lg

Simon

  • Autor

hat sich erledigt :


If Path <> Path2 Then

            Try

                My.Computer.FileSystem.CopyDirectory(Path, Path2)

            Catch ex As IOException

                MessageBox.Show( _

                    "{0}: The write operation could " & _

                    "not be performed because the " & _

                    "specified part of the file is " & _

                    "locked.", ex.GetType().Name)

            End Try

end if

hmm jetzt bin ich noch am rätseln wie ich es machen muss damit er mir die Dateien im Verzeichnis vergleich und nur diese Kopiert die in dem andern Verzeichnis nicht vorhanden sind.

Wie gesagt, wer Tipps liefern kann, würd mich wirklich freuen ;-)

lg und noch nen schönen Abend.

Simon

Bearbeitet von Gateway_man

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.