Board index » delphi » *** DEC PASCAL: VMS commands call ***

*** DEC PASCAL: VMS commands call ***

hi there,
Im new to dec pascal, so i was wondering:
how to invoke a COPY, RENAME, SHOW ... command from a pascal program???
thanx
                        Federico
 

Re:*** DEC PASCAL: VMS commands call ***


Quote
In article <4iro6e$...@serra.unipi.it>, Federico Balbi <ba...@padova.infn.it> writes...
>Im new to dec pascal, so i was wondering:
>how to invoke a COPY, RENAME, SHOW ... command from a pascal program???

On OpenVMS, you use the LIB$SPAWN RTL routine to execute such things.

For example,

[inherit('sys$library:pascal$lib_routines')]
program spawn(output);

begin
lib$spawn('show system');
end.

---
John Reagan
DEC Pascal Project Leader
Application Compilers and Environments
Digital Equipment Corporation
rea...@hiyall.enet.dec.com
Disclaimer:  The opinions and statements expressed by me are not
             necessarily those of Digital Equipment Corporation.
---

Re:*** DEC PASCAL: VMS commands call ***


In article <4iro6e$...@serra.unipi.it>, Federico Balbi

Quote
<ba...@padova.infn.it> wrote:
> hi there,
> Im new to dec pascal, so i was wondering:
> how to invoke a COPY, RENAME, SHOW ... command from a pascal program???
> thanx
>                         Federico

RENAME -->  lib$rename_file(old_name, new_name, (bunch of optional args))

Any DCL command can be executed using:

lib$do_command or lib$spawn

There's also lib$delete_file and a sleu of other lib$ functions which are
very useful.  Check out the OpenVMS RTL Library Manual for details.

Bill

_____________________________________________________________________
Bill Catambay
Pascal Programmer on Macintosh and Open VMS

              />
             //   The purpose of software engineering  
     (//////[O]>=========================================-
             \\    is to manage complexity, not to create it.
              \>

____________________________________________________________________
Check out Pascal Central at URL:  
 http://www.webcom.com/icog/polymorphic/pascal.html

Other Threads