Suppose my directory structure is ..
C:\Program Files\abc\myscript.bat
so from myscript.bat i want to get the parent name of this script which is abc in this case.
Please note that I don't want complete path of parent, i want only parent name like abc.
what is the simple way to achieve this?