copy IDEA file from one project to another

3 posts / 0 new
Last post
ortizmario6025@...
Offline
Joined: 09/03/2021 - 11:54
copy IDEA file from one project to another

Hello, 
How do I copy an IDEA file that is in one project to another project?

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hi ortizmario, here is the code from the language browser on how to do this:


Sub Main

	' Declare variables and objects.
	Dim pm As Object
	Dim SourcePath As String
	Dim DestinationPath As String
	'Declare the current project and the destination folder before calling ClientRunAtServer False.
	Set SourcePath = Client.WorkingDirectory
	Set DestinationPath = "C:\Temp"
	' Access the project management object.
	Set pm = Client.ProjectManagement
	' Copy a file from the current project folder to another local directory.
	pm.CopyDatabase SourcePath + "Sample-Customers.IMD", DestinationPath
	' Refresh the File Explorer.
	Client.RefreshFileExplorer
	' Clear the path.
	Set pm = Nothing

End Sub 
ortizmario6025@...
Offline
Joined: 09/03/2021 - 11:54

very kind thank you