Please help applying a diff patch in windows

arnabnaha wrote on Wednesday, October 27, 2010:

hi…
Please explain, how to apply the patches in the code review section of the forum containing the diff patches in openemr running on windows. What should be the command line in cmd for applying the patches?

bradymiller wrote on Wednesday, October 27, 2010:

hey.

You could try installing the patch command ported by GnuWin32:
http://gnuwin32.sourceforge.net/packages.html

After patch is installed, then copy the patch file to the openemr directory and move to the openemr directory and type following:
patch -p1 < file.patch

Also, rec doing this stuff on a tester version on openemr before you do this to your production version.

-brady

bradymiller wrote on Wednesday, October 27, 2010:

Also,
if there are database changes (mods to the 3_2_0-to-4_0_0-uprage.sql file), then you’ll need to run the sql_upgrade.php through the browser.
-brady

arnabnaha wrote on Wednesday, October 27, 2010:

thanks brady…
I downloaded the software following your link. i downloaded and installed the patch from the link. i copied the patch application after installing into the openemr directory (c:/xampp/htdocs/openemr/) and ran the application. A command promt window opened into which i typed : patch -p1 <name of the patch file along with the location.patch

but nothing happened….

bradymiller wrote on Thursday, October 28, 2010:

hey,

After looking at this page:
http://aaronz-sakai.blogspot.com/2007/07/using-patch-as-in-patch-files-in-winxp.html

Try:
type file.patch patch -p1

-brady