From:	CSBVAX::CSBVAX::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 15-FEB-1989 17:39
To:	MRGATE::"ARISIA::EVERHART"
Subj:	MSDOS.HLP for VMS


Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Wed, 15 FEB 89 12:53:54 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Wed, 15 Feb 89 12:35:31 PST
Received: by ucbvax.Berkeley.EDU (5.61/1.34)
	id AA14138; Wed, 15 Feb 89 12:28:21 -0800
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 15 Feb 89 10:58:57 GMT
From: mailrus!jarvis.csri.toronto.edu!utgpu!watmath!julian!uwovax!brent@tut.cis.ohio-state.edu  (Brent Sterner)
Subject: MSDOS.HLP for VMS
Message-Id: <1629@uwovax.uwo.ca>
References: <2198*kenw@noah.arc.cdn>, <1622@uwovax.uwo.ca>, <1628@uwovax.uwo.ca>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com


	Here is MSDOS.HLP.  Brent.
> =============================================================================
1 Msdos        Conversion table for MS-DOS Commands to VMS Commands
  The subtopics of this help screen provide the user with a way of translating 
  many MS-DOS commands to VMS commands. The following is a list of equivalent
  commands that are suggested, hit return till you see the prompt:

  Topic:  and then the suggested VMS command for more information.

  VMS is a case insensitive operating system and abbreviations are commonly
  accepted for commands.

  Where ever MS-DOS requests a DISK function, (i.e. copy, backup) VMS may use
  Magnetic Tapes.

 
2 ASSIGN        DEFINE logicalname devicename                           .
  DEFINE TAPE MUA0:

2 ATTRIB        SET FILE /PROTECTION                                    .
  SET PROTECTION filename /PROTECTION=(o:rwed)
  SET DIRECTORY

2 AUTOEXEC.BAT  LOGIN.COM                                               .
  This startup file is equivalent to the LOGIN.COM file in VMS.  It 
  executes a series of commands when you first login.

2 BACKUP        BACKUP                                                  .
  VMS has a BACKUP utility that will make copies of files from disk
  and Magnetic Tape.

2 BREAK         ^C                                                      .
  BREAK is always enabled.
  ^C = cancel
  ^Y = interrupt
  ^Z = exit

2 CD            SET DEFAULT  pathname                                   .
  move down 1 directory:       SET DEFAULT [.dirname]
  move up 1 directory:         SET DEFAULT [-]
  return to home directory:    SET DEFAULT SYS$LOGIN
  change to SCRATCH work area: SET DEFAULT SCRATCH:

2 CHDIR         SET DEFAULT  pathname                                   .
  For examples see:   HELP MSDOS CD

2 CHKDSK        AVAIL, SHOW QUOTA                                       .
  AVAIL       shows the current free disk space.
  SHOW QUOTA  shows your current disk usage

2 CLS           WIPE                                                    .
  The WIPE command can not be executed until you have executed the
  command @PLOTLIB:PLOT at least once after logging in.

2 COMMAND       SPAWN                                                   .

2 COMP          DIFFERENCES filename1 filename2                         .

2 CTTY          LANOUT, KERMIT                                          .
  LANOUT enter terminal program to use UCSD Local Area Network
  KERMIT enable KERMIT file transfer protocol: see also HELP KERMIT

2 DATE          SHOW TIME                                               .

2 DEBUG         DEBUG                                                   .

2 DEL           DELETE filename.ext;version                             .

2 DIR           DIRECTORY                                               .
          DIRECTORY pathname
2 DISKCOMP      DIFFERENCES, BACKUP/COMPARE                             .

2 DISKCOPY      TAPECOPY                                                .
  On VMS Disks are not copied by users.  A program TAPECOPY
  is used for copying two magnetic tapes
2 ECHO          WRITE SYS$OUTPUT "output string", SET VERIFY            .
  ECHO ON       SET VERIFY
  ECHO OFF      SET NOVERIFY

2 EDLIN         EDIT filename                                           .
  VMS EDT editor is one of several editors online.
2 ERASE         DELETE filename.ext;version                             .

2 FIND          SEARCH filename "string"                                .
  SEARCH FILE1.DAT "PACIFIC"
2 FOR           (can be simulated, see example)                         .

  $i=0
  $label:
  $i=i+1
  if i.gt.10 then goto the_exit
  $write sys$output i
  $goto label:
  $the_exit:
  $write sys$output "End of loop"

2 GOTO          GOTO label                                              .
  example of label usage:


  $again:
  $write sys$output "This is a test"
  $goto again:

  note: This is  an endless loop and is just an example of the goto 
        usage.
2 GRAPHICS      BUPLOT ploting package                                  .
  To print screen graphics, you need to consult the individual programs
  method of displaying and printing graphics.  To enter this  mode, type
              @PLOTLIB:PLOT
 
2 IF            IF condition THEN command                               .
  IF label.EQS."YES"  THEN DIRECTORY
  
  This means "If the label(which is a string) is equal to YES then
  display the current directory
  (only used in BATCH and COM files)

2 JOIN          DEFINE logicalname devicename                           .
  DEFINE TAPE MUA0:
2 KERMIT        KERMIT                                                  .
  Kermit file transfer protocol is provided.
2 LABEL         INITIALIZE                                              .

2 LINK          LINK filename[.OBJ]                                     .

2 MD            CREATE /DIRECTORY pathname                              .
  see HELP MSDOS CD for pathname examples
2 MKDIR         CREATE /DIRECTORY  pathname                             .
  see HELP MSDOS CD for pathname examples
2 MODE          SET TERMINAL                                            .
                SET TERM /WIDTH=80       Normal Screen Display
                SET TERM /WIDTH=132      WIDE SCREEN DISPLAY
2 MORE          TYPE /PAGE filename                                     .

2 PATH          DEFINE logicalname pathname                             .
  DEFINE CRAY SIO$USERS1:[your_username.NET]
  This command assigns the logical name SDSC to the NET directory in 
  your home directory.

2 PAUSE         INQUIRE symbol "message"                                .
  INQUIRE x "Hit Return to Continue"

2 PRINT         PRINT filename                                          .

2 PROMPT        SET PROMPT="prompt string"                              .

2 RD            DELETE                                                  .
       see RMDIR for example
2 RECOVER       Not available for Disks  Tapes: BACKUP                  .
  Files can not be UNERASED.  Personal files should be backed up
  on Magnetic Tapes daily.  Files can be recovered from your backups.

  VMS also provides for multiple file versions.  These allow for previous
  copies to be saved.  The default number of versions is 2.  This can
  be increased with the command SET FILE /VERSION_LIMIT=n or
  if you want all of the files in a certain directory to have a larger 
  limit, SET DIRECTORY /VERSION_LIMIT=n.

2 REM           !                                                       .
  In a command file, an "!" anywhere on the line will signal 
  the beginning a comment.
2 RENAME        RENAME  old_filename  new_filename                      .

2 RESTORE       BACKUP                                                  .

2 RMDIR         DELETE                                                  .
  Deleting a directory is a five step process.
  A) Change you default to that directory
     SET DEFAULT pathname
  B) Delete all files from directory.
     BEFORE USING THIS COMMAND BE EXTRA SURE THAT YOU 
            DO NOT WANT ANY OF THE FILES
                IN THAT DIRECTORY

           DELETE *.*;*
  C) Move up 1 directory
     SET DEFAULT [-]
  D) Change the protection on the directory so the owner can delete it.
     SET PROTECTION dirname.DIR /PROTECTION=(OWNER:RWED)
  E) Delete the directory
     DELETE /LOG dirname.DIR

     Another method that can be used involves pathnames, it is shorter, but
     more confusing at first. 
     (See HELP MSDOS CD  for examples on pathnames)
 
  A) Delete all files in Directory -- 
     Besure that you DO NOT WANT any of the files in that directory.

     DELETE [pathname]*.*;*
  B) Change the protection on Directory
     SET DIRECTORY /PROTECTION=(OWNER:RWED) [pathname]
  C) Delete directory
     DELETE [pathname]

2 SET     =   ==   :=  =  :==                                           .
               type     command level
               _______________
  variable =   number   local
  variable ==  number   global
  variable :== string   local
  variable =   "string" local
  variable :== string   global

  Local variables are eliminated when a level is exited.  For instance, in
  a command file, if you define local variables, upon completion of the
  command file, the variables will no longer be defined.  Command files are
  similiar to .BAT file in MS-DOS.

2 SHIFT    see example                                                  .
  VMS allows only 8 parameters
  p1=p2
  p2=p3
  p3=p4
  p4=p5
  p5=p6
  p6=p7
  p7=p8

2 SORT    SORT input_file  output_file                                  .

2 SYS     INITIALIZE                                                    .

2 TIME    SHOW TIME                                                     .

2 TREE    DIR [...]                                                     .
  Prints a list of files in sub-directories.
2 TYPE    TYPE filename                                                 .

2 VER     SHOW SYSTEM                                                   .

2 VERIFY  COPY /WRITE_CHECK, BACKUP /VERIFY                             .

2 VOL     SHOW DEVICE devicename                                        .

=============================================================================
> --
> Brent Sterner                        Technical Support Manager, Academic Systems
> Network    <BRENT@uwovax.uwo.ca>     Telephone  (519)661-2151 x6036
> Last Gasp  Computing & Communications Services, Natural Sciences Building
>            The University of Western Ontario, London, Ontario, Canada  N6A 5B7

