declare @i int
execute @i=master.dbo.xp_cmdshell 'dir C:/test'
if @i=1--不存在
execute @i=master.dbo.xp_cmdshell 'md C:/test'
SQL语句创建磁盘目录
最新推荐文章于 2021-01-20 02:50:04 发布
declare @i int
execute @i=master.dbo.xp_cmdshell 'dir C:/test'
if @i=1--不存在
execute @i=master.dbo.xp_cmdshell 'md C:/test'