Wednesday, October 11, 2017

how to merge two files in one using cmd with picture






We are from online computer education program system


How to merge two files to get one file using cmd

NEXT

  1. 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

  2. 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)                          
  3. 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
  4. Type copy /b image.jpg + serial.txt merge.jpg in cmd                                                                           
    TYPE COMMAND
  5. Then go to the Folder you see in cmd window in my case this is c:/users/user                                  
  6. You see there is merge.jpg file in your folder                                                                                  
    OUTPUT FILE
  7. To check it double click on it                                                                                                             
  8. 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