Power Shell

[ps] 파일이나 폴더 exist 확인법

동동(이재동) 2010. 1. 7. 13:31
if (test-path $LogFolder)
{
# echo "Exist folder"
}
else
{
mkdir $LogFolder

}


폴더나 파일도 다 test-path로 할수 있다.