Rename file: adding entire path to filename

Vainly search for a way to rename a file after the entire folder path.

Example:
C:\WINDOWS\Panther\Rollback\MachineIndependent\Transformers\CBS\Rollback.LOG1
to become
C-WINDOWS-Panther-Rollback-MachineIndependent-Transformers-CBS-Rollback.LOG1

Is there no such thing like fullpath or so?

Thanks!

A rename script can do pretty much anything.

function OnGetNewName(getNewNameData)
{
	pathString = new String(getNewNameData.item.realpath)
	return pathString.replace(/:?\\/g,'-');
}

Wonderful!

Thank you so much Leo!

It saves me a time-consuming workaround: copy path from properties
in the clipboard remove the : and \
clipboard copy result and paste/add it to the filename...

Again - thanks!