Is there a way to set the initial folder w/ this code?

Also, can you restrict it to folders a user can write to, or do you have to check that once he/she chooses the folder?