home *** CD-ROM | disk | FTP | other *** search
- /*
- * Name: GOPHMARK EXEC
- * Migrate CMS Gopher bookmarks from 2.3 to 2.4
- * Author: Rick Troth, Rice University, Information Systems
- * Date: 1992-Nov-17
- */
-
- 'GLOBALV SELECT GOPHER GET BOOKMARK.0'
- If Datatype(bookmark.0,'N') Then Exit
-
- 'PIPE COMMAND GLOBALV SELECT GOPHMARK LIST' ,
- '| DROP | STRIP LEADING | STEM MARK.'
-
- Do i = 1 to mark.0
- Parse Var mark.i . '=' name '05'x host '05'x ,
- port '05'x path '05'x . '05'x type '05'x .
- Select /* type */
- When type = "file" Then type = 0
- When type = "menu" Then type = 1
- Otherwise type = Left(path,1)
- End
- bookmark.i = type || name || '05'x || path || '05'x || ,
- host || '05'x || port
- 'GLOBALV SELECT GOPHER PUTP BOOKMARK.' || i
- End
-
- bookmark.0 = mark.0
- 'GLOBALV SELECT GOPHER PUTP BOOKMARK.0'
-
-