My batch script receives a filename with full path (eg.:
C:\...\file.c) as first argument. I need to get the directory of that file and go to the directory, much like:
How do I do this? How do I remove the filename from path? Going to
C:\...\file.c throws an error.