IonicWind Software

IWBasic => General Questions => Topic started by: dossic on September 17, 2008, 02:17:53 AM

Title: keeping track of modifications made on a project
Post by: dossic on September 17, 2008, 02:17:53 AM
Dear friends :

I'm again here for help.

In writing a project, I was unable to find a simple way to keep track of the modifications done.  In anoher BASIC language I used (Liberty Basic) there was the option to save versions during development, and to compare differences between them.  Do we have something similar in EB?

Thanks   Carlo
Title: Re: keeping track of modifications made on a project
Post by: Boris on September 17, 2008, 02:10:42 PM
You can â€ËÅ"brew your own’ using the DOS command â€ËÅ"FC’. (See: http://www.computerhope.com/fchlp.htm)

Write a little EBASIC App, using the System command. Also use the â€Ã...“>â€Ã, parameter at the end of the FC command so that results are directed into a text file rather than being displayed on the screen. EG:

SYSTEM â€Ã...“FC C:\...\...\fileversion1.eba C:\...\...\fileversion2.eba > differencefile.txtâ€Ã,

Then EBASIC can open the difference file and parse out any useful information.

You can test the FC command thus:

Create a simple text file called file1.txt in the root directory (C:\). Then copy that file and make a couple of changes and save it as file2.txt. Then: Start Menu > Run. Type â€ËÅ"cmd’ (no quotes) and press return. In the DOS window type â€ËÅ"cd\’. This navigates you to the root directory. Now type â€ËÅ"FC file1.txt file2.txt’ (no quotes). The difference report will be dumped to the screen. Now type â€ËÅ"FC file1.txt file2.txt >dif.txt’. Nothing seems to happen, but a new file has been crated called â€ËÅ"dif.txt’ which contains the difference report.
Title: Re: keeping track of modifications made on a project
Post by: LarryMc on September 17, 2008, 03:32:16 PM
Boris,
I've been using DOS commands since around 1980-81 and I don't ever remember that command.  Don't know how I over looked it.

thanks

Larry
Title: Re: keeping track of modifications made on a project
Post by: Boris on September 18, 2008, 09:34:27 PM
You’re welcome. I have used this command in the past for a simple security check. On boot up, a program runs that uses DOS functions thus:

DEL oldfile.txt
REN file.txt to oldfile.txt
DIR > file.txt
FC file.txt oldfile.txt > diff.txt

It does this in the root directory, the windows directory and the system directory, and parses diff.txt for info about any new files that may have appeared, been deleted or any files that have altered â€ËÅ"last modified’ dates etc. FC has always been a pretty cool function.
Title: Re: keeping track of modifications made on a project
Post by: dossic on September 27, 2008, 07:25:57 AM
Hi!
I remind perfectly what FC did in old DOS days....  I started using DOS in 1988 on an Amstrad PC with a single 3.5" diskette drive with no HD!

What I was asking is something different. I am looking for a way (if one exists) to keep track of different versions of a EB project within the IDE, to make easier saving the i-th version while starting to make modifications for the i+1 version, modifications that can send the software to crash. So, I could simply go back, choose the i-th version, and start again.
I know I can save each time the individual files with different names, but I (personally) do not like it so much.

Probably it is a silly question, but thanks for reading my notes.

Yours   Carlo

 
Title: Re: keeping track of modifications made on a project
Post by: John Syl. on September 27, 2008, 08:32:38 AM
Could this be what you are looking for?  http://www.componentsoftware.com/Csrcs/

It doesn't run inside the ide but it does keep track and can mark the files with the revision number.

regards John