2014-12-08 9 views
0

업데이트 : 해결.하위 디렉토리에서 배치를 사용하여 파일 이동

두 개의 파일 ("Item.bat"및 "item.csv")을 제외한 모든 파일을 사용자가 속한 폴더 또는 디렉토리에서 미리 정의 된 다른 폴더로 이동하려고합니다. 내가이 일을 할 수 있을까?

감사합니다.

나는 다음과 같은

for %%i in (*.*) do if not "%%~nxi"=="ItemMaster.csv" if not "%%~nxi"=="ItemMaster.bat" move /-y "%%i" "%userprofile%\desktop\testmove" 

답변

0

는 "Item.bat을"이동 "item.csv"다시 원래 위치로 한 후, 모든 파일을 이동하려고 노력했다.

0

나는 그것을 알아낼 수 있었다. 대상 폴더가 없습니다.

for %%i in (*.*) do if not "%%~nxi"=="ItemMaster.csv" if not "%%~nxi"=="ItemMaster.bat" move /-y "%%i" "%userprofile%\desktop\testmove" 
관련 문제