Rename a file with xp_cmdshell

  • Hum....

    I rename the file with success but it is not what i was thinking....

    Instead of renaming the original file this command creates a copy of the original with the new name but i still have the original on the directory.

    e.g:

    I have a directory with 1 file named test, after rename it my directory will have two files. The first one is the same (test) and a new one with the new name.

    Is this the espected behavior?

Viewing post 16 (of 16 total)

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