to pengdali(大力 V2.0)是得到单个文件:比如 d:\a.excel这个文件的属性,用xp_cmdshell好像不能得到
在别的地方,需要判断这个文件上一次被修改的时间,再作下一步操作,请大力再想想办法,thanks
dir 有很多参数 你都可以加上去.
declare @a varchar(50) create table # (name varchar(500)) insert into # exec master..xp_cmdshell 'dir c:\crpe32.dll /t:w' select top 1 @a=left(name,17) from # order by name desc print @a drop table #
create table # (name varchar(500))
insert into # exec master..xp_cmdshell 'dir c:\crpe32.dll /t:w'
select top 1 @a=left(name,17) from # order by name desc
print @a
drop table #