hiding folder using command

how may i hide a folder containing some data using command itself.. either through visibility or something else...??

답변 (2개)

Amith Kamath
Amith Kamath 2011년 11월 2일

0 개 추천

So if you are running windows, I assume system('attrib +s +h +r foldername') when you are in the directory containing the folder will help, or if you are using a unix based system, then all you need to do is to rename the requited folder with a . (period) before it, again by using system('mv foldername .foldername'). I've verified the unix version of this but I cannot do so for windows! Should work though! There is a native function which I just found out about in the other answer! :)
Jan
Jan 2011년 11월 2일

0 개 추천

fileattrib(FolderName, '+h');

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

태그

질문:

2011년 11월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by