Directory Exists on Novell
Directory Exists on Novell
DOS Interfacing (Part II)
REVMEDIA Revisited
@ATTACK - @File.Error
@ATTACK - @Rn.Counter
Reader's Clinic - Related Windows
Playing with Scan Codes
QTIPS - Compiling Protection Code
QTIPS - Invalid Code and Command
QTIPS - Code/Command Help
Compiling 64K on a Shoestring by Blaise Wrenn (LexStat Systems Ltd)
Directory Exists on Novell
Utility Diskette # 4
Reader's Clinic - Functions and Subroutines
Reader's Letters - Jim Owen
Playing with Scan Codes
Argument passing - Subroutines and Functions - Mike Pope
QTIPS - Break-On Date Fields
IConvs / OConvs
Reader's Clinic - Line Length > 256 Characters
QTIPS - String Space
QTIPS - String Space Format Errors
Reader's Forum - Numeric Precision in R/Basic - Hal Wyman
Utility Diskette # 4
Directory Exists on Novell
Screen Grabber
QTIPS - DOS File Names
DOS Interfacing (Part II)
VERBatim - V116
@ATTACK - @Pri.File
@ATTACK - @Rollout.File
File Variables
How Indexes Are Updated
Index Record Layouts
QTIPS - File Variable of File In SELECT Statement
QTIPS - Amending non-Attached Files
LINEAR HASH FILE STRUCTURES - Part 1
Index Flush
QTIPS - File Handle Structure
QTIPS - Deleting Master Relationally Indexed Records
Version 3 Technical Highlights - Deleting Accounts
Version 3 Technical Highlights - Deleting Rows Programmatically
Version 3 Technical Highlights - Deleting Tables Programmatically
Version 3 TCL Subroutines - Deleting Rows
Version 3 TCL Subroutines - Deleting Accounts
Version 3 TCL Subroutines - Deleting Tables
Version 3 TCL Subroutines - Removing Lists
Utility Diskette # 4
Directory Exists on Novell
Reader's Clinic - Page Marks in Windows

RevMedia FKB

DocumentV1I10A9
TitleDirectory Exists on Novell
KeywordsNETWORK
OSOPEN
STATUS
OSWRITE
OSDELETE
DIRECTORY
NOVELL
TextFollowing on FROM an earlier article in which we showed how to check for
the existence of a directory USING OSOPEN and STATUS() Claudio Aretusi of
Michael D Atkin & Associates has submitted the following code to check for
the existence of a directory under Novell (OSOPEN wouldn't work here as we
are not interfacing WITH DOS anymore)

FUNCTION CHECKDIR(DIR)
*
* Author Claudio Aretusi
* Date November 2 1989
* Purpose To check if given directory exists
*
DECLARE FUNCTION UNASSIGNED
IF UNASSIGNED(DIR) THEN DIR = ""
* Normalise directory string to end in '\'
DIR := '\'
SWAP '\\' WITH '\' IN DIR
OSWRITE 'DUMMY' TO DIR : "MDATEST XXX"
STAT = STATUS()
IF STAT = 0 THEN
* File created OK dir exists so delete test file
OSDELETE DIR : "MDATEST XXX"
RETURN 1
END ELSE
* File not created dir does not exist
RETURN 0
END


(Volume 1 Issue 10 Page 10)
[revmedia/copyrigh.htm]

Page last modified: 17/02/03