stored que ejecute comando DOS
Publicado por GERMAN (9 intervenciones) el 22/10/2003 18:44:20
Necesito ejecutar el comando dir *> con un stored para ejecutarlo, he probado con esto:
DECLARE @cmd sysname, @var sysname
SET @var = 'dir *>'
SET @cmd = 'D:\xconvert\' + @var + 'dir_out.txt'
EXEC master..xp_cmdshell @cmd
pero no sirve, si alguien me puede ayudar, muchas gracias.... un abrazo
DECLARE @cmd sysname, @var sysname
SET @var = 'dir *>'
SET @cmd = 'D:\xconvert\' + @var + 'dir_out.txt'
EXEC master..xp_cmdshell @cmd
pero no sirve, si alguien me puede ayudar, muchas gracias.... un abrazo
Valora esta pregunta


0