foobar is an extremely useful piece of software, for playing, converting, and administering your music files.
However, if you are only after a tagger then MP3tag may be an easier option.
If you do brave foobar ensure that you install the Masstagger component as part of the installation. I would go for
version 0.9.
To tag from the file path simply drag the files into foobar, right-click and select "Tagging" > "Edit tags". In the subsequent dialogue click "Add" below the top-left "Actions to perform" list (ensuring the list is empty to begin). Select "Guess values from filename..." from the subsequent dialogue, and then enter a string that matches your filename format. For my files this would be:
%artist%\%album%\%tracknumber% - %title%The text between the % is the name of the tag that will be created.
To discard aspects of the file path that you don't want use %%. E.g.: if your file paths were like:
My Artist\My Album (I Don't Want This)\01 - First TrackThen the string would be:
%artist%\%album% (%%)\%tracknumber% - %title%Click OK to enter the string, and then "Run" on the main dialogue to perform the action.
You may do best to practise with some copies first.

Edit: Sorry, GUI is "Graphical User Interface" and simply means a Windows-like application, like Word, Dreamweaver, etc. A command line application on the other hand is a DOS-like application, which you run it from the CMD prompt. Command line applications are useful when writing scripts to automate processes.