Jeff Graham
Manual Data Modification with WDModfic.exe February 24, 2009 08:01PM |
sWDModfic is string sWDModfic = """" + gsProgramsDir + "WDModfic.exe """ + "-nobackup -error /US ... /WDD=""" + gsProgramsDir + "WDSummary.wdd""" + " /DIR=" + gsDataDir IF NOT ExeRun(sWDModfic,exeActive,exeWait) THEN Info("WDModfic Failed") END
Jimbo
Re: Manual Data Modification with WDModfic.exe February 25, 2009 05:51AM |
Moderator |
Quote
Jeff Graham
Hello,
We always execute WDModfic.exe on the start of our application for two reasons:
1) Our application has data stored in either classical or HF C/S and the data may not be accessible at the time of application update for some machines.
2) Previous data may be restored and would be out of sync with the current analysis.
However, to manually execute WDModfic.exe, you must have the .wdd file accessible. We do this by putting a copy in the EXE directory and including it with the setup process. As I have not found a way to pick up a file from the <HomeDir> of the project, we have to remember to copy any changes to the .wdd file to the EXE directory before making a setup installation.
Does anyone know how to automatically include the .wdd file? You can include it in the library but that does not make it accessible to WDModfic.exe, it has to be installed separately.
The code we use for classical HF follows:
sWDModfic is string sWDModfic = """" + gsProgramsDir + "WDModfic.exe """ + "-nobackup -error /US ... /WDD=""" + gsProgramsDir + "WDSummary.wdd""" + " /DIR=" + gsDataDir IF NOT ExeRun(sWDModfic,exeActive,exeWait) THEN Info("WDModfic Failed") END
Does anyone have a better suggestion than running WDModfic.exe manually or another way to do data modification at start up?
Thanks,
Jeff Graham
Cascade Consulting
IF OnTestMode() THEN // Copy the current analysis file to the exe-directory: fCopyFile(Left(CompleteDir(fExeDir()),Length(CompleteDir(fExeDir()))-4)+"YourProjectName.wdd",fExeDir()) ELSE IF fFileExist(CompleteDir(fExeDir())+"WD120Outil.xxx") AND NOT fFileExist(CompleteDir(fExeDir())+"WD120Outil.wdk") THEN fRename(CompleteDir(fExeDir())+"WD120Outil.xxx",CompleteDir(fExeDir())+"WD120Outil.wdk") END END
Paulo Oliveira
Re: Manual Data Modification with WDModfic.exe February 25, 2009 12:16PM |
Jeff Graham
Re: Manual Data Modification with WDModfic.exe February 25, 2009 05:55PM |