home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / REFLECT.ZIP / VAXDIR.DCL < prev    next >
Encoding:
Text File  |  1989-02-14  |  1.6 KB  |  48 lines

  1. $!
  2. $! Invoke the BACKDIR.EXE program, passing on parameters.
  3. $!
  4. $! Syntax for executing BACKDIR is:
  5. $!
  6. $!   BACKDIR <pc-file-spec> [ <backup-file-name> ] [ /S ] [ /N ]
  7. $!
  8. $!     <pc-file-spec> is the file template. May contain "?" and "*"
  9. $!     wild-card characters. Must begin with directory. \A*.B??,
  10. $!     \MYDIR\WHATSIT.WHO, and \*.* are valid examples.
  11. $!     <backup-file-name> is name of the file on the VAX which is
  12. $!     the "container" for all the individual PC files. BACKUP is
  13. $!     the default.
  14. $!     /S is a parameter which indicates that you want all sub-
  15. $!     directories of the directory specified in <pc-file-spec> to
  16. $!     be searched. For example, BACKDIR \*.* /s requests a list
  17. $!     of all files in the root directory and all of its sub-
  18. $!     directories - or all of the files contained in the backup
  19. $!     file.
  20. $!     /N is a parameter which indicates that you want the
  21. $!     condensed listing, with only the names of the files found
  22. $!     printed. The default is an expanded listing, containing
  23. $!     file name, file size, create/modification date and time,
  24. $!     and backup date and time.
  25. $!
  26. $!
  27. $! concatenate parameters
  28. $!
  29. $ parms = ""
  30. $ if P1 .eqs. "" then goto endparms
  31. $ parms = P1
  32. $ if P2 .eqs. "" then goto endparms
  33. $ parms = parms + " " + P2
  34. $ if P3 .eqs. "" then goto endparms
  35. $ parms = parms + " " + P3
  36. $ if P4 .eqs. "" then goto endparms
  37. $ parms = parms + " " + P4
  38. $ endparms:
  39. $!
  40. $! define foreign command
  41. $!
  42. $ fcmdstr = "$" + f$environment("default") + "BACKDIR.EXE"
  43. $ backdir := 'fcmdstr'
  44. $!
  45. $! invoke the program
  46. $!
  47. $ backdir 'parms'
  48.