Move File name .IMD
Forums
Hi,
Is it possible using script to move file name .IMD from local project to another folder,
Thank you.
Thank you very much Brian it
Thank you very much Brian it works perfectly. However, if I want to use this script without displaying the dialog box, ie I write directly the name of the file to move as well as its path where should I make the changes? because this action to move the file effect another script that is waiting to run.
Hi Ahmed, then all you need
Hi Ahmed, then all you need is the move function and you can change the following line:
pm.MoveDatabase sFilename, sDestinationPath
Could be:
Set pm = Client.ProjectManagement
pm.MoveDatabase "c:\Documents\user name\My IDEA Documents\IDEA Projects\My IDEA Project\Sample-Customers.IMD", "c:\new path"
Set pm = Nothing
Most of the code was getting the location of the files but if you know that all you need is the three lines above to move a file, the first part is the location of the file you want to move and the second part is the path of where you want to move it to.
Brian
Greetings,
Greetings,
I am new to the IDEA scripting world. Is there a script to select IMD file from a specific folder for testing? i am currently running testing on several statements in iDEA and would like to select them individually for testing. additionally is there a way to change the name of the IDEA result database?
Thank you for your assistance.
Hello and welcome to the site
Hello and welcome to the site.
For your second question usually there is a function that allows you to change the default result name, an example is the stratification, if you looks in the Language Browser under Stratification you will see the following line:
task.ResultName = "Stratification"
Just change the stratification to the name you wish. You can check the Language Browser for other tests.
For your first question I don't quite understand, you can hard code the names of the IMD files in your script for testing, maybe give an example of what you are trying to do.
Thanks
Brian
The main reason is that your
The main reason is that your script hasn't referenced a file yet, as soon as you click a button it runs as it is not currently running the DisplayIt function. If you click on the dlgMenu and make sure you have selected the entire dialog you should see something in the Properties called Function that is currently set as NewDialog1, changeit to DisplayIt and now the dialog will call the DisplayIt function which will allow you to select your file.
Hi Ahmed, here is some
Hi Ahmed, here is some example code that allows you to pick and file and then pick a folder and then it moves the file to the new folder. I have also attached the script.