Freemind Collaboration on Windows: Difference between revisions

From FreeMind
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 1: Line 1:
== Freemind Win Collab ==
== Introduction ==


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.
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.
== Code ==


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):
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):


<nowiki>
<nowiki>
@ECHO OFF<br />
@ECHO OFF\n
CLS<br />
CLS\n
REM *** CONFIG : Edit here if necessary ***<br />
REM *** CONFIG : Edit here if necessary ***\n
<br />
\n
SET freemindProgramPath = "C:\Program files\FreeMind\Freemind.exe"<br />
SET freemindProgramPath = "C:\Program files\FreeMind\Freemind.exe"\n
<br />
\n
REM if this script is in the same dir as the file (.mm), just write : filepath=.\<br />
REM if this script is in the same dir as the file (.mm), just write : filepath=.\\n
SET filepath=.\<br />
SET filepath=.\\n
<br />
\n
REM the name of the file to share
REM the name of the file to share
SET filename=toto.mm
SET filename=toto.mm

Revision as of 21:59, 2 April 2006

Introduction

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.

Code

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\n CLS\n REM *** CONFIG : Edit here if necessary ***\n \n SET freemindProgramPath = "C:\Program files\FreeMind\Freemind.exe"\n \n REM if this script is in the same dir as the file (.mm), just write : filepath=.\\n SET filepath=.\\n \n 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