Forum Discussion

VasanthVijay's avatar
VasanthVijay
Contributor
10 years ago

How to use Rename method?

Hello all,

               I have a file in the store file.I used the Metho to get the File.FileNameByName."Having the File name with full path."

a = File.FileByName("abc.txt");

aqfile.Copy("C:\abc.txt");

aqfile.rename(a,"C:\DEF.txt");

at that time Store --> File  abc is n/a inside of Testcomplete Project.

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    Your last part

    Store --> File  abc is n/a inside of Testcomplete Project.

    is not clear to me.

     

    Is your example showing us what you did or what you want TestComplete to do?