Freemind Collaboration on Windows

From FreeMind
Revision as of 21:55, 2 April 2006 by Starcrouz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Freemind Win Collab

Share your mindmaps and built them in collaboration. This simple batch file autorise collaboration on freemind maps via a fileserver. If you can access the same disk with your collegues in your organisation, you can now work together on your mindmaps : this script avoid multiple edition at the same time (lock the file for you and tell the others that YOU edit it for the moment) and make backups each time you open a mindmap (like 2006-04-02_myfilename.mm). Work only on windows.

Copy the code below to a text file (located in the same dir as your mindmap to share if possible) named share.bat (for example):

@ECHO OFF<br /> CLS<br /> REM *** CONFIG : Edit here if necessary ***<br /> <br /> SET freemindProgramPath = "C:\Program files\FreeMind\Freemind.exe"<br /> <br /> REM if this script is in the same dir as the file (.mm), just write : filepath=.\<br /> SET filepath=.\<br /> <br /> REM the name of the file to share SET filename=toto.mm REM if you like the backuped file to be stored in their own dir. Don't forget the trailing slash REM example : backupsdir=versions\ SET backupsdir= REM ******** Do not edit below ******** IF EXIST %filepath%lock.txt GOTO :LOCKEDFILE ECHO STARTING FREEMIND on %computername% echo . REM ********** Backups *************** set mydate=%date:~11,4%%date:~8,2%%date:~5,2% set mytime=%time:~0,2%%time:~3,2%%time:~6,2% ECHO Saving preceding version of this file (good idea, is'nt it ?) copy "%filepath%%filename%" "%filepath%%backupsdir%%mydate%_%mytime%_%filename%" ECHO . echo %filepath%%backupsdir%%mydate%_%mytime%_%filename% echo %mydate% echo %mytime% REM ********** lock file creation *************** ECHO %computername% > "%filepath%lock.txt" %freemindProgramPath% "%filepath%%filename%" ECHO You locked this mindmap file. You can free it later by pressing space bar in this window echo . PAUSE CLS ECHO That's it, your file is now free to be edited by others. DEL "%filepath%lock.txt" GOTO THEEND :LOCKEDFILE CLS ECHO Sorry, the file is already edited by TYPE "%filepath%lock.txt" GOTO THEEND :THEEND echo . PAUSE