Post by Jerry Muelver on Sept 20, 2007 15:45:02 GMT -5
I copied my c:\rbp directory to my USB stick drive, and carted it off with me to work today. I had only a small glitch, easily solved when Alyce pointed out to me that the file-access configuration was in prefs.xml. I edited <projectsRoot>c:\rbp to <projectsRoot>e:\rbp and I was good to go. RB on a stick is a good way to transport your working environment and show your stuff to co-workers and potential clients.
Great idea, Jerry! For added flexibility, you could write a launcher app in LB that detects the location it's being run from, and auto-updates the prefs.xml file for you before running RB.
Here's some LB code that does the location detection bit: function getExeDir$() nSize = max(1000, _MAX_PATH) buffer$ = space$(nSize) + chr$(0) calldll #kernel32, "GetModuleFileNameA", _NULL as ulong, _ buffer$ as ptr, nSize as ulong, result as ulong getExeDir$ = left$(buffer$, result) calldll #shlwapi, "PathRemoveFileSpecA", getExeDir$ as ptr, result as boolean getExeDir$ = left$(getExeDir$, instr(getExeDir$, chr$(0))-1) + "\" end function