ActiveX in DTS to rename files or folder on FTP site.

  • Does anyone know if it is possible to rename files or folders that are on an FTP site through an ActiveX script in a DTS package?

    Ta.

  • This was removed by the editor as SPAM

  • No need for ActiveX script. T-SQL will do..........Following renames the backup file "DB1Oldname.BAK" to "DB1Newname.BAK" .

     

    declare @rename varchar(255)

    select @rename =

    'ren "\\FTPSERVER\D$\SQLSERVER\BACKUP\MYDATABASE\DB1\DB1Oldname.BAK" '

    + 'DB1Newname'

    + '.BAK'

    exec master..xp_cmdshell @rename

    GO

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply