hey im writing batch program for the first time and i have almost finished it the only problem is that i want to extract basename from absolute path
for eg :
if my first argument is c:\abcd\xyz\temp.txt then i want only temp.txt in variable.
and how do i extract some part from string for eg abcd.txt if i want only abcd i can use cut -d"." -f1 in unix. how to do this in windows ??