ABCUpload4 ÄÄÆ÷³ÍÆ®´Â ÀÚüÀûÀ¸·Î ÆÄÀÏÀ» Áö¿ì´Â ¸Þ½îµå´Â Áö¿øÇÏÁö ¾Ê´Â´Ù°í ÇÕ´Ï´Ù. ÇÏÁö¸¸ ´ÙÀ½°ú °°ÀÌ
FileSystemObject ¸¦ ÀÌ¿ëÇÏ¿© °Á¦ÀûÀ¸·Î ¾÷·ÎµåµÈ ÆÄÀÏÀ» Áö¿ì½Ã¸é µË´Ï´Ù.
´ÙÀ½Àº del.asp ¹®¼ÀÇ ¿¹Á¦ÀÔ´Ï´Ù.
<% filepath
= "./dirupload/test.asp" Set
objFS = Server.CreateObject("Scripting.FileSystemObject")
objFS.DeleteFile server.mappath(filepath)
%> |
filepath ºÎºÐÀº Áö¿ì°íÀÚÇÏ´Â ÆÄÀÏÀÇ »ó´ëÀû °æ·Î¸íÀÔ´Ï´Ù. Áï del.asp ¹®¼°¡ ÀÖ´Â °÷À» ±âÁØÀ¸·Î
ÇÕ´Ï´Ù. ±×¸®°í DeleteFile À» ÀÌ¿ëÇÒ¶§´Â mappath¸¦ ÀÌ¿ëÇÏ¿© Àý´ë°æ·Î¸íÀ¸·Î ÀûÀ¸½Ã¸é µË´Ï´Ù.
°Ô½ÃÆÇ¿¡ ¾÷·Îµå ±â´ÉÀ» Ãß°¡ÇÑ °æ¿ì ÀÚ½ÅÀÌ ¸¸µç °Ô½ÃÆÇ¿¡¼ ±Û»èÁ¦½Ã DB¾ÈÀÇ ³»¿ëÀ» Áö¿ï¶§ À§ÀÇ ¼Ò½ººÎºÐÀ»
Âü°íÇؼ ÆÄÀϵµ °°ÀÌ Áö¿ìµµ·Ï Çؾ߰ÚÁÒ?..
|
|