|
PRAGMA PROGRAM REFERENCE MANUAL
|
Index
|
All Operation
|
|
Expand All ADDENDUM
|
DOS EXIST
|
DE
|
Standard Verb
|
Operating System Operation
|
Target = IPC STATUS (IS)
|
Checks the existence of an operating system file. Returns OK in the noun IPC STATUS if the operating system file specified exists and FILE NOT FOUND if the file is not there.
|
DOS EXIST filename FILENAME FILENAME is an expression or a noun containing the name (and path) of the operating system file.
|
SEE ALSO: IPC STATUS
|
DOS EXIST (DE)
DOS EXIST looks for the existence of an operating system file. The result of the operation is written to the standard noun IPC STATUS (IS). If the file you are testing for exists, the noun IPC STATUS will contain OK. If the file does not exist, the IPC STATUS will contain FILE NOT FOUND.
DOS EXIST lets you check for a file in any directory or drive you wish by simply preceding the filename with the drive and path of the file.
EXAMPLE
VERB called TEST DOS EXIST
1 DOS EXIST filename "C:\AUTOEXEC.BAT" 2 DISPLAY the value IPC STATUS
This example looks for the existence of the file AUTOEXEC.BAT in the root directory of drive C.
It is important to always check the IPC STATUS since you are performing an operation on the operating system level where things are beyond the control of PRAGMA.
|
|
|
CustomWare® is a registered trademark of CustomWare Designs, Inc. All rights reserved.
CustomWare® is a registered servicemark of CustomWare Designs, Inc. All rights reserved.
All images and designs on this web site are copyrighted© 2021.
v
t
|
|