Text1.Text = CommonDialog1.FileName
他得出的路径是: C:\Program Files\Game\Game.exe
但我想他变作 C:\Program Files\Game\
不要后面的,那应该怎做