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.

VBScript: Dateipfad/name variabel ändern

Empfohlene Antworten

Veröffentlicht

Guten Mittag zusammen! :-)

Habe folgendes Problem:

Ich möchte bestimmte Ordner, die eine bestimmte Anfangsstruktur haben umbennen.

Beispiel:

cscript Renaming.vbs PFAD QUELL-DATEIKÜRZEL ZIEL-DATEIKÜRZEL

cscript Renaming.vbs C:\temp\XYZABC_Urlaub XYZABC XYZJKL

Nun soll der Ordner von C:\temp\XYZABC_Urlaub in C:\temp\XYZJKL_Urlaub umgewandelt werden. Habe es schon mit der mid-Funktion versucht. Bis dahin auch alles kein Problem. Doch wenn jetzt die Datei C:\Beispiel\XYZABC_DasistnureinBeispiel heißt, wird es problematisch, da die mid-Funktion keine Variablen enthält und nur bis zu einer bestimmten Zahl ausgibt und abschneidet.

Kann ich zb. den Pfad bis zum ersten X abschneiden lassen?

Und natürlich auch andersrum:

Kann ich zb. den Ordnername bis zum ersten C abschneiden lassen?

Ich hoffe es ist klar was ich meine. Bei Fragen einfach fragen. ;-)

Vielen Dank schonmal,

Aliter

der inhalt von Renaming.vbs wäre natürlich interessant.

s'Amstel

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.