/* REXX OS/2 - PerfSO.CMD perform a Save object function */ /*-ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ (C) Copyright 1993-1997 Development Technologies, Inc. ³ ³ Portions Copyright 1993 Gregory Czaja ³ ³ All rights reserved ³ ³ DeskMan, DeskMan/2, DM2Setup, VUEMan, VUEMan/2 and DM2Image ³ ³ are trademarks of Development Technologies, Inc. (DevTech), ³ ³ a Pennsylvania Corporation ³ ³ ³ ³ ver. 2.0 Use DM/2 Command Line Interface object September 1995 ³ ³ ver. 2.01 modified August 1997 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/ /*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Saves the object of the name-object located in the ³ ³ FolderName-folder in the specified archive file. ³ ³ REXX generation and Save options depending on current ³ ³ DeskMan/2 settings - can be set prior to PerformSave... ³ ³ ³ ³ The folder and object names should be surrounded by " ³ ³ if containing blanks. ³ ³ ³ ³ The format is: ³ ³ PerformSaveObject=x:\path\file.drp,name,FolderName; ³ ³ PerformSaveObject=x:\path\file.drp,ALL,FolderName; ³ ³ ³ ³ name can be: . object title ³ ³ . object ID ³ ³ . fully qualified path ³ ³ . ALL ³ ³ note: if an object ID (i.e., a character string enclosed ³ ³ in brackets <>) is used as the object name, the ³ ³ object's location specified as FolderName will be ³ ³ IGNORED! - but needs to be specified. ³ ³ note: if ALL is specified, all object located in the ³ ³ folder will be saved. ³ ³ Not allowed with ANYWHERE! ³ ³ FolderName can be: . folder title ³ ³ . object ID ³ ³ . fully qualified path ³ ³ . ANYWHERE ³ ³ note: if ANYWHERE is specified as the object's location, ³ ³ the entire Desktop will be searched for the object ³ ³ specified (top-down). First object found will be ³ ³ used. Not allowed with ALL! ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/ /*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» º Note: the use of other DeskMan/2 setup strings and use of the º º PerformSaveSettings=YES; º º to save the current (after the SysSetObjectData) DeskMan/2 º º settings! If PerformSaveSettings is not used, the settings º º are changed but not saved, so the user's settings (prior º º to SysSetObjectData) will be restored on the next system º º boot. º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/ /* Execute as: PERFSO x:\deskman\test.drp Name Folder */ Parse Arg args; If Left(args,1) = '"' Then Parse Var args '"'DRCfile'"' args; Else Parse Var args DRCfile args; args=Strip(args); If Left(args,1) = '"' Then Parse Var args '"'object'"' args; Else Parse Var args object args; args=Strip(args); If Left(args,1) = '"' Then Parse Var args '"'folder'"' .; Else Parse Var args folder .; If DRCfile = '' Then Do; Say 'DeskMan/2 PERFORM: the DRC file name is a required parameter.'; Exit 99; End; If object = '' Then Do; Say 'DeskMan/2 PERFORM: the object name is a required parameter.'; Exit 99; End; If folder = '' Then Do; Say 'DeskMan/2 PERFORM: the folder name is a required parameter.'; Exit 99; End; Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'; Call SysLoadFuncs; rc=SysSetObjectData('',, 'PerformSaveObject='DRCfile','object','folder';'||, 'PerformSaveSettings=YES;'); If rc <> 1 Then Do; Say "DeskMan/2 PERFORM: error performing Save object!"; Exit 99; End; Say 'DeskMan/2 PERFORM: Save object initiated successfully!'; Exit 0;