Couple of Copy/Move Buttons

Hi am trying to make few buttons that would do the following:

1.A button that moves all files with a given extension say ""Jpeg" to the root folder and then delete the folder.Basically it copies all the files with any given extension,goes up a folder pastes the copied files and then deletes that folder from which files were copied.

2.A button that takes me up one level and deletes the last folder i visited.

Is there a way to provide the path of various levels of directories to a command for example the buttons described above....can they be configured with one level up,two level up....etc

well the ".." parameters in {filepath$|....} did the trick.Heres what i came up with

Select *.png
Copy MOVE TO {filepath$|....}
Go UP
Delete

this will select all png files move them one directory up and delete the empty folder.

You should also be able to just use .... by itself without the {filepath}, but great that you worked it out either way!