Ich mache ein Batch-Skript, um alle .doc
, .pdf
, .xls
usw. von der Festplatte auf einen USB-Stick zu kopieren.Kopieren mehrerer Dateien mit * .extension mit xcopy
Mein aktueller Code unten:
@echo off
Title ""
::All Docs
XCOPY C:\*.doc W:\xdatabase /C /S /I /F /H > W:\database\XC\AllInf.txt
::All PDFs
XCOPY C:\*.pdf W:\xdatabase /C /S /I /F /H >> W:\database\XC\AllInf.txt
::All WRI
XCOPY C:\*.wri W:\xdatabase /C /S /I /F /H >> W:\database\XC\AllInf.txt
::All TXT
XCOPY C:\*.txt W:\xdatabase /C /S /I /F /H >> W:\database\XC\AllInf.txt
::All PPT
XCOPY C:\*.ppt W:\xdatabase /C /S /I /F /H >> W:\database\XC\AllInf.txt
::All XLS
XCOPY C:\*.xls W:\xdatabase /C /S /I /F /H >> W:\database\XC\AllInf.txt
Die Frage ist: Wie kann ich mehr Erweiterungen hinzufügen, aber alle, die Vervielfältigung im Code vermeiden?
Oh, ich bin dankbar, dass genau das, was ich gefragt thks viel –
Vergessen Sie nicht, die Antwort als akzeptiert zu markieren, wenn es Ihr Problem gelöst hat. – Tomalak
Bereits erledigt! : D –