Forum Discussion

joffre's avatar
joffre
Regular Contributor
13 years ago

Rename Folders/Subfolders/Files and other doubt

Hi all.


I'm trying to make a function that do exactly what the function attached is doing;

But I want something that uses TestComplete classes instead of CommandPrompt.


I've already read about aq.FileSystem.RenameFolder and RenameFile, but it doesn't seems to be the best way to do that.


Hope someone can help me (again).


------


The other doubt is a little more complex.


I need to open EVERY RENAMED FILE, search for the line "CREATE TABLE xxxxx" and/or "ALTER TABLE xxxxx", and create a new notepad file with all the occurrences, replacing the CREATE TABLE and/or ALTER TABLE for "SELECT * FROM xxxx".


------


Ideas??!?

50 Replies