- ©«¤l
- 59
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 108
- ÂI¦W
- 0
- §@·~¨t²Î
- winXp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- «ÌªF
- µù¥U®É¶¡
- 2011-12-16
- ³Ì«áµn¿ý
- 2018-8-10
|
¦^´_ 5# kimbal
kimbal¤j¤j ÁÂÁ®@!! ±ß¦w
...§A»¡ªºÀ³¸Ó¬OFILESYSTEMOBJECT
¥H¤U¬O§RÀɪº:
object.DeleteFile "filename", force
force¬Otrueªº¸Ü, ÀÉ®×°ßŪ®É¤]¥idelete
dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject") ->³o¦æ
If filesys.FileExists("c:\somefile.txt") Then
filesys.DeleteFile "c:\somefile.txt",TRUE ->³o¦æ
End If
½s¿è: ¬Ýº|¤FÃD¥Ø,¬O®ÉԺΤF
¥H¤U¬O§R¤å¥ó§¨ªº:
FORCE¬OTRUEªº¸Ü,¤å¥ó§¨¦³ªF¦è³£·|DELETE
Dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject") ->³o¦æ
If filesys.FolderExists("c:\FOLDER\") Then
filesys.DeleteFolder "c:\FOLDER", True -> ³o¦æ
End If
¨º2¦æ¬O¥²»Ý¤@°_ªº´N¬O¤F
¦A½Ð±Ð CreateObject("Scripting.FileSystemObject") ³o¬O¤°»ò²[¼Æ?? ¬O¤°»ò·N«ä? ¦b»¡©úùا䪺¨ì¶Ü? |
|