Redefines hard-coded paths in xrefs, images, shapes, styles, and rtext.
Command: REDIR
Current REDIRMODE: Styles,Xrefs,Images,Rtext
Find and replace directory names
Enter old directory (use '*' for all), or ? <options>: Specify the folder to be replaced or press Enter for options (see REDIRMODE for option descriptions)
Replace "*" with: Specify a new folder or press Enter to specify an empty string (see tip below.)
Example 1: List the current path associations and then change them
Command: REDIR Current REDIRMODE: Styles,Xrefs,Images,Rtext Find and replace directory names Enter old directory (use '*' for all), or ? <options>: Enter ? File references to list <*>: Press Enter TYPE NAME FILE ---------------------------------------------------------------------------------------------------------- STYLE STANDARD TXT STYLE TTF ARIAL.TTF STYLE XREFA|STANDARD TXT STYLE XREFA|TTF ARIAL.TTF SHAPE I:\WORK\TEST\ES.SHX XREF XREFA I:\WORK\TEST\XREFA.DWG IMAGE THATCH I:\work\TEST\brick2.bmp IMAGE XREFA|THATCH THATCH RTEXT I:\work\TEST\57072_b.txt Enter old directory (use '*' for all), or ? <options>: I:\WORK\TEST\ Replace "I:\WORK\TEST\" with: K:\TEST Searching for old dir: I:\WORK\TEST in order to replace it with: K:\TEST XREF XREFA I:\WORK\TEST\XREFA.DWG -> K:\TEST\XREFA.DWG SHAPE I:\WORK\TEST\ES.SHX -> K:\TEST\ES.SHX IMAGE THATCH I:\WORK\TEST\BRICK2.BMP -> K:\TEST\BRICK2.BMP RTEXT I:\work\TEST\57072_b.txt -> K:\TEST\57072_B.TXT 1 style/shape records modified. 1 image references modified. 1 xrefs modified. 1 rtext objects modified. Changes to some externally referenced objects may be temporary.
Example 2: Strip all hard-coded paths
Command: REDIR Current REDIRMODE: Styles,Xrefs,Images,Rtext Find and replace directory names Enter old directory (use '*' for all), or ? <options>: Enter * Replace "*" with: Press Enter Searching for old dir: * in order to replace it with: XREF XREFA K:\TEST\XREFA.DWG -> XREFA.DWG SHAPE K:\TEST\ES.SHX -> ES.SHX IMAGE THATCH K:\TEST\BRICK2.BMP -> BRICK2.BMP RTEXT K:\TEST\57072_B.TXT -> 57072_B.TXT 1 style/shape records modified. 1 image references modified. 1 xrefs modified. 1 rtext objects modified. Changes to some externally referenced objects may be temporary.
redir.lsp