A L . . . . . . . . . . . R |-2 | | | | | [z][h]LANDMARK SOFTWARE[] | [z]=1142 Pomegranate Court Sunnyvale CA 94087 408-733-4035[][~LM] | [b]IMPORTANT:[] MOVE and the other programs in the LANDMARK UTILITIES package are neither public domain nor shareware programs. Rather, they are commercial programs. The cost of the LANDMARK UTILITIES package is $29.95. Companies wishing to bundle any or all of these program should contact Landmark Software for bundling prices. Dealers should ask about our DealerPak. Corporate users should contact us about multiple copy agreements and site licenses. [b]What Does MOVE Do?[] Landmark's MOVE command lets you move files to a different directory on the same drive without actually physically copying the files. This is much faster and less error-prone than using the COPY and DELETE commands. The archive bit of each of the moved files is turned on to assure proper backup from its new location. [b]How Do I Use MOVE?[] A summary of the syntax and available options can be displayed by using the command [b]MOVE ?[] The syntax is very similar to that of the usual COPY command: [b]MOVE d:\path1\filename d:\path2 /options[] Wildcards are permitted in 'filename'; omitting the file name is equivalent to specifying '*.*'. Both 'path1' (the source) and 'path2' (the target) must be fully specified from the root. Drive letters defined by SUBST may be used. Here are a few examples: [b]MOVE C:\OLDDIR C:\NEWDIR[] [b]MOVE C:\OLDDIR\MYFILE C:\NEWDIR[] [b]MOVE C:\OLDDIR\*.DOC C:\NEWDIR /+2D[] By default, MOVE will prompt for permission to create the target directory if it doesn't already exist. This is equivalent to specifying the '[b]=[]' command line option. (For reasons that will become clear later, we need a way to specify even those options that are in effect by default.) Alternately, by using the '[b]+[]' option, you can specify that MOVE is to create the target directory automatically without prompting. Or, by using the '[b]-[]' option, you can specify that MOVE is to terminate without moving anything if the target directory doesn't already exist. | | | | |-2 | | | | | By default, MOVE will list all the files moved; this is equivalent to specifying a display mode of '[b]3[]' as a command line option. A display mode of '[b]2[]' only lists the count of how many files were moved. A display mode of '[b]1[]' lists only error messages. So the default of '3' is the most verbose form while '1' is the least verbose. Besides being faster and less error prone, you'll find that MOVE is more comprehensive than COPY & DELETE: Landmark's MOVE command will move all files regardless of attribute byte. In particular, 'readonly', 'hidden' and 'system' files will be moved along with ordinary files. [b]Parallel Moves on a Second Drive[] MOVE has the unique ability to perform a parallel move on a second drive. This is invaluable with backup programs such as Landmark's LBACKUP that create ordinary DOS files and maintain the same directory structure on the backup media as on the primary media. This feature makes it possible to move files on the backup media at the same time you move them on the primary media. By default, the parallel move feature is turned off. This is equivalent to a command line option of '[b]#[]'. To use the parallel move feature, just specify the letter of the second drive as a command line option. For example, '[b]/D[]' would cause parallel moves to occur on drive D. [b]Customizing MOVE Defaults[] If you almost always want to create target directories without prompting, or you almost always want one of the less verbose display modes or you almost always want to use the parallel move option, you can customize the MOVE defaults. This is done by defining the environment variable [b]MOVE_OPTIONS[], typically in your AUTOEXEC.BAT file. For example, the command [b]SET MOVE_OPTIONS=/+2[] would cause the '+' option (automatic creation of target directory) and the '2' option (display only the count) to be in effect each time you use MOVE--unless you specifically specify a different option. Any command line options specified will override the corresponding option used in the definition of the MOVE_OPTION environment variable. This is why we need the ability to specify options that are normally the default anyway--so you can specify those options if you need to override a conflicting customized default. | | | | - 2 - | | |-2 | | | | | { [b]Specifying the Location of SUBST.EXE[] MOVE uses the DOS command SUBST whenever the target and destination drive letters are not a literal match. Whenever MOVE needs to use the SUBST command, it checks whether the 'SUBST_DIR' environment variable has been defined. If 'SUBST_DIR' has been defined, MOVE attempts to execute SUBST.EXE in the specified directory. If 'SUBST_DIR' is not defined, then MOVE attempts to execute any SUBST found along the PATH that is currently in effect. If you have a batch file called SUBST.BAT that gets executed whenever SUBST is typed at the DOS prompt, then you'll need to define the environment variable [b]SUBST_DIR[] to specify the directory that contains the SUBST.EXE file. Otherwise MOVE will inevitably execute your SUBST.BAT batch file by mistake--which will lead to a possibly erroneous error message stating that the source and target drive letters do not refer to the same logical drive. } Here's how to define the 'SUBST_DIR' environment variable: Presumably your AUTOEXEC.BAT already calls a batch file (perhaps named SETDEF.BAT) that contains all the SET commands that you want executed each time you boot up the system. Just add the line [b]SET SUBST_DIR=directory[] to that batch file, where 'directory' is the directory containing the file SUBST.EXE. [z][g]Landmark Software[] [b]1142 Pomegranate Court[] [b]Sunnyvale, CA 94087[] [b]408-733-4035[] | | | | | | | | - 3 - | | |-