Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
The only difference between your environment and my environment is that I'm using TestComplete 8.50 and you're using 7.52. So, I loaded up TC 7.52 and tried it. I get a clean result in that the folder is renamed and there is nothing copied to any other folders.
When you're putting the code up, are you doing a direct copy and paste from TestComplete or are you typing it in? The reason I ask is that the behavior you are describing would happen if you are doing the following:
Note the backslash (\) in the first path. This tells RenameFolder to actually move the folder to the destination folder which is the behavior you are describing.
Examine your code for extraneous backslash characters and remove them.
Other than that, I'm not sure what else to tell you. You could try uploading the actual script code unit you are using and I can examine your code directly that way but the function, for me, is working correctly both in TC 8 and in TC 7.
When you're putting the code up, are you doing a direct copy and paste from TestComplete or are you typing it in? The reason I ask is that the behavior you are describing would happen if you are doing the following:
Call aqFileSystem.RenameFolder("C:\SQL Server\", "C:\SQLServer")Note the backslash (\) in the first path. This tells RenameFolder to actually move the folder to the destination folder which is the behavior you are describing.
Examine your code for extraneous backslash characters and remove them.
Other than that, I'm not sure what else to tell you. You could try uploading the actual script code unit you are using and I can examine your code directly that way but the function, for me, is working correctly both in TC 8 and in TC 7.