We are from online computer education program system
How to merge two files to get one file using cmd
NEXT
- Go to cmd either by clicking start >type cmd in search box >press enter or from start >All programs >Accessories >Command prompt. (A window will appear)
CMD OPEN CMD
- In this you have to type the following statement copy /b file1 + file2 outputfile (file1=first file, file2=second file, and outputfile=file after combining)
- For example, if i have two files image.jpg and serial.txt then i merge these two using the above statement to get a jpg file name merge.jpg
FILES - Type copy /b image.jpg + serial.txt merge.jpg in cmd
TYPE COMMAND - Then go to the Folder you see in cmd window in my case this is c:/users/user
- You see there is merge.jpg file in your folder
OUTPUT FILE - To check it double click on it
- To retrieve it right click on it > open with notepad > scroll down to the last. You see the content of your text(.txt) file.
![]() |
RIGHT CLICK TO OPEN IN NOTEPAD |
![]() |
CONTENT OF TEXT FILE |
No comments:
Post a Comment