Copy Code code as follows:
@echo off
: Start
@echo.
Echo① please drag into image file return
Echo (not recommended BMP format, upload to the network album after the compressed packet data may be corrupted)
set/p photo=
Call:11%photo%
: 11
Cls
If%~x1==.png Goto 1
If%~x1==. PNG (Goto 1)
If%~x1==.gif (goto 1)
If%~x1==. GIF (Goto 1)
If%~x1==.jpg (goto 1)
If%~x1==. JPG (Goto 1)
If%~x1==.bmp (goto 1)
If%~x1==. BMP (goto 1) Else goto 2
: 1
@echo.
Echo② please drag into compressed file enter
set/p rar=
Call:22%photo%%rar%
: 22
If%~x2==.rar Goto 3
If%~x2==. RAR (Goto 3)
If%~x2==.zip (Goto 3)
If%~x2==. ZIP (goto 3) Else goto 4
: 3
copy/b%photo% +%rar% "C:\Documents and Settings\All Users\ desktop \ Merge Successful%~x1"
: 6
Cls
@echo.
Echo③ "Merge Successful" file stored on desktop
The echo file name is: Merge successful%~x1
Echo.
echo If you need to use the file in the ZIP package
echo changes the picture format%~x1 to%~x2 decompression
Echo.
Echo.
Set Choose =
set/p choose= Delete the original picture and the compressed package (y/n)?
If%choose%==y Goto 5
If%choose%==n (Cls&goto end) Else Goto 6
: 5
Del%1
Del%2
Goto END1
: 2
Cls
Echo.
Echo is not a picture file you dragged into
echo please drag back into the picture (JPG, BMP, GIF, PNG)
Goto Start
: 4
Cls
Echo.
ECHO is not a compressed file you dragged in
echo please drag back into the compressed package (RAR, Zip)
Goto 1
: End1
Cls
Echo has been deleted
: End
Echo.
Echo.
Echo Press any key to close--http://www.jb51.net
Pause>nul
Exit