Getting errors when moving D7/CiviCRM install form localhost xampp portable to another location
Had to change the path name in civicrm.settings.php from:

G:\XAMPP_2018\htdocs\crm4


To

C:\Core\XAMPP_2018\htdocs\crm4\


This is around LINE 180:

Code looks like this:

$civicrm_root = 'G:/August25/XAMPP_2018/htdocs/crm4/sites/all/modules/civicrm';
if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
  define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'G:/August25/XAMPP_2018/htdocs/crm4\sites\default\files\civicrm\templates_c\');
}

But the slashes also have to be forward like this "/", I searched from Windows path, that's why I couldn't find the code using find and replace!