|
@echo off
:: 请将该批处理放入%userprofile%\SendTo目录下
set path=%path%;D:\ProgramPortable\UltraISO_9.5.1.2810_Portable_cn
set myvolume="%~n1"
set mydirectory="%~1"
set mypath=%~dp1
for /f "delims=" %%i in ("%~1") do (
set route=%%i
set filename=
call :separate
)
:separate
if not "%route:~-1%"=="\" (
set filename=%route:~-1%%filename%
set route=%route:~0,-1%
goto separate
) else (
goto makeiso
)
:makeiso
UltraISO.exe -imax -volume %myvolume% -optimize -directory %mydirectory% -output "%mypath%%filename%.iso" -joliet -jlong -checksum -md5 -silent
echo
exit |
|