Haben Sie Probleme mit cmd Prompt Befehl:Befehlszeile verschieben Sie alle Dateien bestimmter Typen mit NO-Überschreibungs/y FUNKTIONIERT NICHT
for /r E:\ %f in (*.jpg) do @move "%f" "E:\jpg" /Y
Diese Befehlszeile funktioniert nicht so, wie ich es gedacht. Ich versuche, alle Dateien auf meinem externen Laufwerk eines bestimmten Typs (z. B. jpg) in einen Ordner auf meinem externen Laufwerk (E:/jpg)
Irgendwelche Vorschläge ???
Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\█████>for /r E:\ %f in (*.jpg) do @move "%f" "E:\jpg" /Y
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\█████>for /r E:\ %f in (*.jpg) do @move "%f" "E:\jpg"
Overwrite E:\jpg\10255420_10200945699085042_5035519864603771578_n.jpg? (Yes/No/All): Yes
1 file(s) moved.
Overwrite E:\jpg\10307411_10201163984180409_2977646430196181302_n.jpg? (Yes/No/All):
Wenn Sie die '@' Sie entfernen wird sehen, dass der Befehl ausgeführt wird. – ACatInLove
lesen Sie die Ausgabe von 'move /?' Und korrigieren Sie die Syntax. (Notieren Sie die Position des swich) – Stephan
Sie müssen auch sicherstellen, dass jede kopierte Datei '.jpg' in' E: \ jpg' nicht zurückgenommen wird up durch '(* .jpg)' und 'Überschreiben' 'bewegen sich über sich selbst und erzeugen einen endlosen Zyklus. Ich bemerke, dass Sie Dateien aus '$ RECYCLE.BIN's' verschieben '; um sicherer zu sein, würde ich vorschlagen, dass 'cmd.exe'' Run as administrator' ist. – Compo