get admin path in magento

Hello Friends

If you want to get admin path name then use my below code

echo (string)Mage::getConfig()->getNode(‘admin/routers/adminhtml/args/frontName’);

It will return admin or your admin custom path name

Let me know your comment if its not work for you