계속해서 생성되는 파일을 실시간으로 삭제해주는 프로그램을 만들려고 합니다.
휑하니
private sub form_load()
timer1.interval = 100
timer1.enabled = true
end subprivate sub label1_click()end subprivate sub timer1_timer()
if lenb(dir(c:\netmarble\netmarblesuddenattack\*.log)) 0 then
kill c:\netmarble\netmarblesuddenattack\*.log
else
end ifif lenb(dir(d:\netmarble\netmarblesuddenattack\*.log)) 0 then
kill d:\netmarble\netmarblesuddenattack\*.log
else
end ifif lenb(dir(c:\netmarble\netmarblesuddenattack\*.txt)) 0 then
kill c:\netmarble\netmarblesuddenattack\*.txt
else
end ifif lenb(dir(d:\netmarble\netmarblesuddenattack\*.txt)) 0 then
kill d:\netmarble\netmarblesuddenattack\*.txt
else
end ifif lenb(dir(c:\netmarble\netmarblesuddenattack\*.cab)) 0 then
kill c:\netmarble\netmarblesuddenattack\*.cab
else
end ifif lenb(dir(d:\netmarble\netmarblesuddenattack\*.cab)) 0 then
kill d:\netmarble\netmarblesuddenattack\*.cab
else
end ifif lenb(dir(c:\netmarble\netmarblesuddenattack\*.dmp)) 0 then
kill c:\netmarble\netmarblesuddenattack\*.dmp
else
end ifif lenb(dir(d:\netmarble\netmarblesuddenattack\*.dmp)) 0 then
kill d:\netmarble\netmarblesuddenattack\*.dmp
else
end ifif lenb(dir(c:\nexon\suddenattack\*.log)) 0 then
kill c:\nexon\suddenattack\*.log
else
end ifif lenb(dir(d:\nexon\suddenattack\*.log)) 0 then
kill d:\nexon\suddenattack\*.log
else
end ifif lenb(dir(c:\nexon\suddenattack\*.txt)) 0 then
kill c:\nexon\suddenattack\*.txt
else
end ifif lenb(dir(d:\nexon\suddenattack\*.txt)) 0 then
kill d:\nexon\suddenattack\*.txt
else
end ifif lenb(dir(c:\nexon\suddenattack\*.cab)) 0 then
kill c:\nexon\suddenattack\*.cab
else
end ifif lenb(dir(d:\nexon\suddenattack\*.cab)) 0 then
kill d:\nexon\suddenattack\*.cab
else
end ifif lenb(dir(c:\nexon\suddenattack\*.dmp)) 0 then
kill c:\nexon\suddenattack\*.dmp
else
end ifif lenb(dir(d:\nexon\suddenattack\*.dmp)) 0 then
kill d:\nexon\suddenattack\*.dmp
else
end ifend sub서든어택 폴더내에 확장자가 log,cab,dmp,txt 로 생성되는걸 실시간으로 삭제를하려합니다.위의 소스는 제가 수다 사이트에서 검색해서 댓글을보고 대충 조합해서 만든건데 제컴에서는 잘되는데 어떤pc에서는 52 런타임오류가 나오거나 72 런타임오류가 나오네요.어디를 수정해야할지 지적질좀 부탁드립니다. 참고로 비베 이제 다섯번정도 켜봤습니다; 완전 개초짜 kill문이 삭제한다는것도 이거만들면서 알았네요
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2701865 | ( " ) 요거 ㅠㅠㅠ | 허우룩 | 2025-07-18 |
2701781 | 파일 실행하면 컴퓨터종료하는 프로그램인데 | 퍼리 | 2025-07-17 |
2701725 | Shell 문 질문이요 ! 고수님들 부탁드려요 | 유미 | 2025-07-16 |
2701671 | txt내용 변경하기좀 질문합니다.. (2) | 봄여우 | 2025-07-16 |
2701620 | 비베 폼크기 단위 (1) | UniQue | 2025-07-15 |
2701591 | 비베로 웹에있는 파일을 FTP로 다운받지 않고... (1) | 미즈 | 2025-07-15 |
2701512 | 딜어떻게 만들어요 ? (1) | 도손 | 2025-07-14 |
2701484 | 체크박스(아이콘) 관련.. | 새콤이 | 2025-07-14 |
2701454 | 계산기 수식 질문이요 (2) | 슬기 | 2025-07-14 |
2701430 | 저희 집 컴퓨터... 셧 다운이... 안 되요... (Windows XP SP3) | 바름 | 2025-07-14 |
2701404 | 최소화 닫기 확대 이거 모양어케바꿔요 디자인할수잇는데. | 또야 | 2025-07-13 |
2701378 | 아무나 비베.iso 토렌트파일로 올려주심 안대나요? | 중독적 | 2025-07-13 |
2701349 | 커맨드박스클릭후 체크 사용? (1) | 지율 | 2025-07-13 |
2701319 | 빠른답변좀 해주세용 ㅠㅠ | 마루나 | 2025-07-13 |
2701292 | 궁금한게있습니다 . | 아잉 | 2025-07-12 |
2701263 | 버튼이나 폼크기 수정할떄 그 드래그 같이 끌리는게 안보여오 (1) | 진솔 | 2025-07-12 |
2701237 | 커맨드박스질문 (1) | 연분홍 | 2025-07-12 |
2701184 | 자동업데이트 다른질문 (1) | 꽃햇님 | 2025-07-11 |
2701160 | 관리프로그렘을 제작하고있는대요 (2) | 똘끼 | 2025-07-11 |
2701131 | 현재 폼이 비활성화인지 활성화인지 확인하는방법 | 동생몬 | 2025-07-11 |