Open directory

Hello. How to create a script in a directory on the desktop so that a given directory opens in single view and miniatures view, not the default? Thank you

Please link your account.