|
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.
|
|
|
Post by billw on Sept 20, 2007 15:51:05 GMT -5
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
|
|
jerry
Junior Member
Posts: 83
|
Post by jerry on Jun 29, 2019 16:12:01 GMT -5
Ok... 12 years in the future...
I found this bit of code very handy. Thank you "billw". I translated this to freebasic on linux, into a bash start up script for RB on a stick. Works great.
Jerry
|
|