Forum Discussion
joffre
14 years agoRegular Contributor
Hey Robert, I was so excited about this worked that I forgot about my other issue.
Const Path = "D:\Scripts\Scripts\"
Call aqFileSystem.RenameFolder(Path&"\01 - LGComponentes", Path&"\1.LGComponentes")
Call aqFileSystem.RenameFolder(Path&"\1.LGComponentes\SQL Server", Path&"\1.LGComponentes\SQLServer")
Call aqFileSystem.RenameFile(Path&"\1.LGComponentes\SQL Server\1.LGComponentes_CREATE_SQL_SERVER.sql", Path&"\1.LGComponentes\SQL Server\1.SQL")
I think the code is right, but, it isn't working properly.
On the first line:
Call aqFileSystem.RenameFolder("D:\Scripts\Scripts\01 - LGComponentes", "D:\Scripts\Scripts\1.LGComponentes")
Instead of rename the folder 01 - LGComponentes to 1.LGComponentes it creates a new folder named 1.LGComponentes on path directory and, inside this new folder, it pastes folder 01 - LGComponentes.
I didn't test the other lines because the code doesn't pass through the first line.