I tried to make a drag-and-drop batch file.
I have the problem that a file exists but the batch file couldn't find it...
I want to copy .png
files (like pict_2013020808172137243.png
) to another folder and rename it.
In the path are symbols like _
and spaces, also I don't know how to make multi-drag-and-drop to make the same function (rename and add to .zip
).
I tried this but with no result :(
@ECHO OFF
ECHO %1
COPY "%1" "%CD%est" /Y /S
REN "%CD%mob*.png" "%CD%estest.png"
7za u -tzip "%appdata%.virtopack.zip" "test" -r
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…