wyl1212 当前离线
列兵
yhcfsr 当前离线
中尉
<# :@echo off&cd/d "%~dp0"more +8 "%~f0" >"%temp%\%~n0.ps1"powershell -NoLogo -NoProfile -ExecutionPolicy bypass -File "%temp%\%~n0.ps1"del /f /q "%temp%\%~n0.ps1"pause#> $files = dir *.* -r -Exclude *.bat; foreach($file in $files){ $newpath = "$($file.Directory)\"+($file.BaseName -replace '_','\'); if( !(Test-Path $newpath) ) {[void] (md $newpath);} Move-Item -Path $file -Destination $newpath}COPY
TOP
ivor 当前离线
上校
@echo offset "path=C:\Users\mac\Desktop\ceshi"for /f "tokens=1,2,3* delims=_." %%a in ('dir "%path%" /b /a-d') do (if not exist "%path%\%%a\%%b" mkdir "%path%\%%a\%%b"move "%path%\%%a_%%b.%%c" "%path%\%%a\%%b\")pauseCOPY