d-.-b: Probleme mit Batch :)

Beitrag lesen

hallöle an alle erstmal :)

MEIN PROBLEM:
IN BATCH MOCHTE ICH EINEN DATEINAMEN (z.B. "test_datei.dat") IN EINE VARIABLE ÜBERGEBEN:

---cut--
:test.bat
MD %1"bla [ %2 ] bla"
:end
---cut--

::BEFEHL: test.bat IRGEND_EIN_PATH test_datei.dat

::ERGEBNIS:
-   1. ORDNER: "test"

  • UNTERORDNER: "bla [ test_datei.txt ] bla"

WENN DIE VARIABLE IN %2 NUN ABER EIN FREIZEICHEN ENTHÄLT, FUNZT DAS NICHT, DA JA z.B. "test datei.txt" == "test" & "datei.txt" SEIN WÜRDEN! ALSO:

::ERGEBNIS:
-   1. ORDNER: "test"

  • UNTERORDNER: "bla [ test ] bla"

Mit freundlichen Grüßen
d-.-b

__________________________________________________________

KANN MIR HIER JEMAND HELFEN ??? =P