I recommend you to check the cd function documentation. On a quick thought, I suppose it must be something like:
startpname = get(handles.editFolder, 'String');
cd(startpname);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!