ReLocDS if moving entire project to another location


You may have noticed that if you rename the working directory of a RunDynam project, or copy that directory (with subfolders) to another location, you cannot run simulations in the new location.

The reason is as follows. RunDynam stores simulation details in DSn files suffixed DS1, DS2, DS3, DS4 and DS5. These DSn files contain many filenames which are specified using full pathnames (that is, including the folder names).  

So, if you copied your RunDynam project from the folder C:\MyProject to the folder (on another disk) E:\MyNewProject, then loaded into RunDynam a DS1 file from E:\MyNewProject, you would find that the working folder was still C:\MyProject and simulations would use files located in C:\MyProject. This could be confusing and annoying.

The command-line program ReLocDS addresses this problem. You might use it as follows.

1.Close RunDynam.

2.Copy the folder C:\MyProject with all its sub-folders to the folder E:\MyNewProject.

3.Open a command prompt (aka DOS box) in E:\MyNewProject, and type:
 C:\Rundynam\ReLocDS ALL
[assuming that ReLocDS.exe is stored in C:\Rundynam].

4.Start RunDynam and load a DS1 file from E:\MyNewProject

If copying the project to another PC (perhaps via a USB key) you might choose first to reduce the size of the copied folder with the Clean up working directory command.  

The method described above is an alternative to RunDynam's ZIP archive method of moving simulations to another location. The ZIP archive method is very convenient for copying the "ingredients" of one simulation. But it is not so efficient if your working directory contains several related simulations, or if contains subfolders with many DOC, XLS, and other files related to the project. In such cases it may be easier to simply copy the whole project folder, then run ReLocDS.

 

What ReLocDS does

ReLocDS searches though all  DS1, DS3, DS4 and DS5 files in the current folder.

Each contains a line like

Sim Directory=C:\MyProject

showing the previous location of the simulation.  ReLocDS replaces each occurrence of C:\MyProject in the DSn file with the current location  [E:\MyNewProject].

 



URL of this topic: www.copsmodels.com/webhelp/rundynam/hc_ReLocDS.htm

Link to full GEMPACK Manual

Link to GEMPACK homepage