Forum Discussion
joffre
14 years agoRegular Contributor
Sub Teste2
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\SQLServer\1.LGComponentes_CREATE_SQL_SERVER.sql", Path&"\1.LGComponentes\SQL Server\1.SQL")
Log.Message("Folder 1.LGComponentes renamed")
End Sub
I think we aren't talking about the same thing. Or I'm not understanding why does the second line needs to be like you are saying.
Here is my directory:
D:\Scripts\Scripts\01 - LGComponentes\SQL Server\1.LGComponentes_CREATE_SQL SERVER.sql
I need it to be like this:
D:\Scripts\Scripts\1.LGComponentes\SQLServer\1..sql
On the first line I'm renaming the folder 01 - LGComponentes to 1.LGComponentes
On the second line I'm renaming the folder SQL Server to SQLServer
And finally, on the third line, I'm renaming the file from 1.LGComponentes_CREATE_SQL_SERVER.sql to 1.sql.
So. What's wrong with my code?