Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current scctext text generator replacement
Message
De
04/12/2014 07:06:01
 
 
À
04/12/2014 06:19:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Source Safe Control
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01599986
Message ID:
01611785
Vues:
42
>I do not have the time nor money to switch now to something else. SOS has always done great for me, so while I might switch at some point, I cannot right now.
>
>Here is my question:
>
>In SOS I can set command lines for File Compare Tool, folder compare tool, and merge tool. The defaults use diffmerge like this:
>
>%sos_dir%\DiffMerge.exe /ro1 /ro2 /title1=%t2 /title2=%t1 %2 %1
>
>And I have these params available:
>-working folders file
>-latest remote file
>-baseline
>-merged copy of working folders file
>- titles of file 1, 2, and 3
>
>
>
>SOS has a decent superset of functionality. It seems that given that functionality, it should be possible to have a script that does the merge and then calls foxbin2prg to recreate the binaries.
>

Ok, if SOS have this parametrization then you can do something with it. You can do a VFP program to interface between SOS and the merge tool, so your program-interface receives the parameters from SOS, call the merge tool with this parameters *and* finally autogenerate the binary from the selected text file.

Something like this:
* VFP9_SOS_Merge_Interface_Txt2Bin.prg
LPARAMETERS tcMergedFilename, tcP1, tcP2, tcP3, tcP4, tcP5, tcP6

%sos_dir%\DiffMerge.exe tcP1, tcP2, tcP3, tcP4, tcP5, tcP6  && You need to make a valid Run call, this is only example

<foxbin2prg_dir>\foxbin2prg.exe tcMergedFilename
In this example, the first parameter is just for FoxBin2Prg, the remaining parameters are passed to DiffMerge.
Finally, compile as EXE, soy you can put in in SOS.

I think this will do the job.
Fernando D. Bozzo
Madrid / Spain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform