Last updated August 31, 2016.
Here are some steps to use the Windows cmd prompt for patching in Windows. There is a videocast on Installing Cygwin on Windows XP that covers installing Cygwin but not actually using it. For applying patches from command line there is another videocast Applying Patches to Drupal Core. Cygwin must be installed with the patch features. They are not automatically installed.
The following uses the Windows cmd prompt. Cygwin must be installed, but for this to work the Windows cmd prompt must be used instead.
- cygwin is installed at c:\cygwin
- the patch is at c:\mypatch.patch
- The drupal installation is at c:\drupal
- Start a cmd window
- cd c:\drupal
- c:\cygwin\bin\patch.exe -p1 < c:\mypatch.patch
If the patch is successful a line similar to the following will be displayed for each file that was patched.
"patching file core/modules/filter/migration_templates/d6_filter_format.yml"
The following original sentence is unclear. Also, where is the .rej file located?
After the patch is applied check for it saying that hunks failed. If it does it will create a reject(.rej) file where you can look at what has failed.