Baidu paste Upload picture way accessory tool _dos/bat

Source: Internet
Author: User
Tags goto rar
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.