Access������--
ËùÊô·ÖÀࣺ ʵÓôúÂë ×÷Õߣº leonchou ¸üÐÂÈÕÆÚ£º2003-10-29 19:09:17 ÔĶÁ´ÎÊý£º123

È¡µÃµµ°¸ÈÕÆÚÏà¹ØÊôÐÔ


Function FileDate(filespec, datetype)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
Select Case datetype
Case 1: FileDate = f.DateCreated µµ°¸½¨Á¢ÈÕÆÚ
Case 2: FileDate = f.DateLastAccessed ´æÈ¡ÈÕÆÚ
Case 3: FileDate = f.DateLastModified ÐÞ¸ÄÈÕÆÚ
End Select
End Function
ʹÓ÷¶Àý --ÔÚ¹¤×÷ÊäÈë =FILEDATE("d:\temp\1115p.zip",2)µÃµ½Ö¸¶¨µµ°¸µÄ×îáá´æȡʱ¼ä, ´úÂë¿ÉÈÝÐí 1, 2, 3ʹÓøú¯ÊýµÄ´¢´æ¸ñÒªÉè³ÉÈÕÆÚʱ¼ä¸ñʽ.


--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ

ûÓÐÏà¹ØÎÄÕÂ

ϵͳÓÅ»¯
¿Ø¼þʹÓÃ
Êý¾Ý¿âÉè¼Æ
Êý¾Ý¿âÁ¬½Ó
ϵͳ°²È«
OLE×Ô¶¯»¯
³£¼ûÎÊÌâ
ʵÓôúÂë
ÊôÐÔÏê½â
ÍøÂçÏà¹Ø
ʵÓÃAPI
¾­Ñé·ÖÏí
¾«Ñ¡½Ì³Ì
×Ö·û´¦Àí
ADPÏà¹Ø



ÎÄÕÂËÑË÷



ÖÆ×÷ά»¤£ºÀîÑ°»¶     Mail:[email protected]

¹ØÓÚ±¾Õ¾ -- ÍøÕ¾·þÎñ -- °æȨÌõ¿î -- ÁªÏµ·½·¨ -- ÍøÕ¾°ïÖú
Access°®ºÃÕß°æȨËùÓÐ Copyright 2003-2005 All Rights Reserved δ¾­Ðí¿É²»µÃµÁÁ´