Hale and Hearty dos command--copy

Source: Internet
Author: User
Keywords EXE benefit strong text merge can
DOS era, http://www.aliyun.com/zixun/aggregation/16458.html ">copy command is probably the most popular and most commonly used in a DOS internal command, but in Windows rampant today, It is gradually forgotten by the user, it seems to become dispensable.   In fact, this command is far more than "copy" So simple, make good use of it, will receive unexpected results.





remote upload and download with copy





copy files with copy command Everybody knows, but you know what? Copy also supports copies of remote files! Like copy C:\SRV. EXE \\210.***.***.***\admin$ can be the program SRV.EXE "upload" to each other's admin share directory, of course, the reverse also can, so as to "download": Copy \\210.***.***.***\admin$\srv .   EXE c:\ can download the SRV.EXE file from each other's admin share directory to the local C disk.





the secret in someone else's belly with copy




The
dos Copy command can combine several files of the same type into a single file, such as multiple. txt files, which in fact can merge a text file into a non text file to achieve the hidden secret effect.  For example, you have an important text file in the D-Packing directory: 001.txt, and want to hide it.





Find a MP3 song, the volume is best not too big (about 500KB), such as: Wanfei.mp3 (assuming also placed in the D-packing directory), input: Copy wanfei.mp3/b + 001.txt/a Wanfei-1.mp3, this will generate a new file Wanfei-1.mp3. Open it with Winamp, the song does not change. Hold down the SHIFT key and right-click Wanfei-1.mp3, select Open With and select a text editor such as EmEditor to open the file, what do you see? A bunch of garbled?   But if you press the CTRL key combination to move the cursor to the end of the file, is the content in the 001.txt file?





Tip: The parameter/b specifies to copy and merge files in binary format; parameter/a specifies that files are copied and merged in ASCII format. Note here the order of the files, binary format files should be placed before the plus sign, text-formatted files after the plus sign.   One thing to remind everyone is that it's best to have at least 3 lines in front of the text file so that the contents of the header are not easily lost.





The same reason, you can hide the file into pictures, WAV sound files, and even in Word, Excel and other documents hidden in the secret, such as:





Copy wanfei.jpg/b + 001.txt/a wanfei-1.jpg (hide 001.txt in wanfei-1.jpg picture)


 


Copy wanfei.doc/b + 001.txt/a Wanfei-1.doc (hide 001.txt in Wanfei-1.doc document)





Copy wanfei.wav/b + 001.txt/a wanfei-1.wav (001.txt hidden into wanfei-1.wav file)





Copy wanfei.exe/b+ 001.txt/a wanfei-1.exe (hide 001.txt in Wanfei-1.exe file)
Related Article

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.