자바스크립트 폴더배열 가져오기
작성자 : 단국강토
등록날짜 : 2009.01.30 09:47
아래 코드를 참고해 보세요.
원하시는 결과가 나오지 않을까 생각되네요.
<html>
<head>
</head>
<body onload=test2()>
<script>
function test2()
{
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
var srt = fso.GetFolder("c:\\");
var fc = new Enumerator(srt.files);
for (; !fc.atEnd(); fc.moveNext())
document.all.fafa.value += fc.item().name + "\n";
}
</script>
<br>
<textarea id=fafa></textarea>
</body>
</html>
[출처] 웹디황용
"쇼핑몰·홈페이지·오픈마켓
블로그·페이스북·이메일 등의 각종 마케팅 글쓰기, 각종 광고, 영업, 판매, 제안서, 전단지 반응율 3배×10배 이상 높이는 마법의 8단계 공식" |
☞자세히보기 |
|
|