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.

Dateien aus Array separieren

Empfohlene Antworten

Veröffentlicht

Hallo Scripter,

ich muss mit VBScript ein Script zum Vereinen von PDFs schreiben.

Ich habe ein Verzeichnis, wo die die Quelldateien drin liegen. Diese lasse ich in ein Array schreiben, das dann wie folgt aussieht:

--------------------------------------------------------------------

| 123-01.pdf | 123-02.pdf | 123-03.pdf | 567-01.pdf | 567-02.pdf | ...

--------------------------------------------------------------------

Jetzt muss es mir gelingen jeweils die Dateien zu separieren, die am Anfang die selbe Nummer haben (also z.B. 123-01.pdf, 123-02.pdf, 123-03.pdf).

Meine Einlese-Funktion sieht momentan so aus:

Private Function GetFiles (ByVal strPath)

    Dim objFolder

    Dim arrFiles, arrTemp, arrForReklNr

    Dim strFile, strFileName, strRekl


    Set objFolder = objFSO.GetFolder(strPath)

    Set arrFiles = objFolder.Files


    For Each strFile In arrFiles

        arrTemp = Split(strFile, "\")

        strFileName = arrTemp(4)

        Wscript.Echo strFileName

    Next    


    Set objFolder = Nothing  

    Set arrFiles = Nothing


End Function

Mir fehlt jetzt irgendwie der Ansatz, wie ich die entsprechenden Dateien aus dem Array bekomme und damit weiter arbeiten kann. Könnt Ihr mir nen Tipp geben?

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.