Loading Vector Layer using python console in qgis
I don't have a Windows OS to test it, but I'm pretty sure the problem is in the path to your ShapeFile. Make sure the path is correct and try with slashes (/)
or double back slashes (\\)
.
Add following
from qgis.core import *
and try to run again if still doesn't work