JCMD.NLM ------------- Program JCMD emulates COMMAND.COM's prompt on NetWare File Server version 3.1x, 4.x or 5.0 . You can work with files on server DOS partition (until REMOVE DOS or SECURE CONSOLE) and with files on NetWare volumes. You can not run DOS programs. Syntax: LOAD JCMD [cmdfile] - More than one copy can be loaded - Program works with DOS name space. COPY command can copy OS2 / LONG filenames and DIR can list them. Cooperation with other name spaces was not tested. - There are used undocumented NetWare functions & non-standard programing tricks in the program, especially for DOS access. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! User is responsible for any possible damage. !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Known problems: - by copy of large files from NetWare CDROM volume onto DOS disks can server hang. It is better first copy file to HD-volume and then to DOS. - Working with DOS, system is switched into real processor mode. So if you press Ctrl-C in lucky moment, server will hang! Any DOS problem (not ready error reading drive B: ...) can hang server too. - If JCMD shows errors in DOS in/out copy, DOS FILES could be exhausted. FILES=20 or more is recommended. - Problem was reported on Netware 5 with Cluster Service, which may abend your server. - AT ALL: program was intended as S.O.S. tool, not as good working environment (no Norton Commander). - There is restriction for NW 4.x+: - only bindery emulation login (But trustees/owners in file copy are transferred OK, because trustee ID is used, not name) - commands: : volume selection (as c: or sys:) CD MD DIR [/L][drive:][path][file] COPY [/S] [/T] [/D] [filepath] VER version EXIT REN [spath\][file] [dpath] DEL [/S][path\] HELP VOL NW volumes SALV [path][file] [/S[A]|/P[A]] salvage/purge TYPE [path\] [/B] ATTR [/S][filepath] [R|H|A|T|P|Sy|Sh +|-] CMD [filepath] LOGIN [user[pwd]] LOG [N] | [ [ E | A ] logname] SET [option {0|1}] ; comment Lower / upper case letters can be used. Details: CD - "." a ".." could be used. On NetWare volumes also works "...", "...." and so on. DIR [/L][drive:][path][file] - wildcards ? * can be used - /L tries to list also long (OS2) names COPY [/S] [T] [/D] [filepath] - wildcards can be used. If "/S", all subtree is copied. !!!! If source filepath is not unique, target must be directory. COPY can NOT rename in this way: "copy *.txt *.old" - if "/T" is used, trustee are copied too. - if owner is not valid, SUPERVISOR is used. - if "/D" (Don'tCompress) is used, compressed files will be decompressed in copy REN [spath\][file] [dpath] - no wildcards ! Target must be on the same volume ! DEL [/S][path\] - deletes files or directories. if "/S", whole subtree is deleted. SALV [path][file] [/S[A]|/P[A]] - Without parameters lists salvageable files. With /S, you will be asked for salvage at every file. With /P, you will be asked for purge at every file. With /SA or /PA salvage/purge is done for all. TYPE [path\] [/B] - with /B is file typed binary. Wildcards can be used. ATTR [/S][filepath] [R|H|A|T|P|Sy|Sh +|-] - wildcard can be used - attribute shortcuts R ... read only H ... Hidden A ... Archive T ... Transactional P ... Purge Sy ... System Sh ... Shareable - attributes on whole subtree can be changed with /S switch LOGIN [user [pwd]] - password can be used only in batch processing (CMD command). It is not possible to work with DOS files on remote servers. You can access other fileserver's disk by full name: MUJSERVER/SYS:\SYSTEM LOGIN is launched automatically, if you try access disk on server you not logged in. CMD [cmdfilename] - command file is text file with commands to do. Interactive commands (SALV /S) don't work. LOG [N] [ [E | A] logname] - switch on/off logging: Errors (E) or All doing (A) is logged into specified file. Without parameters displays logging status. SET [option {0|1}] - set switches for JCMD behaviour. Value of switch can be 1 or 0 (yes or no). SET without parameters displays actual values of all switches. SET