External File Management Routines for Clarion Tested on C4a (ABC & Legacy) and 2003 There are txt files included in the zip that have specific instructions for loading and calling these functions. Created by K.W. "Bill" Roe broe@friend.ly.net 4/10/1998 The following files are freely released into the public domain. I hope they are of some use to you. (NOTE: xx represents either 16 or 32, depending on the DLL) KWRxx.TXT KWRxx.DLL KWRxx.LIB KWRxx.CLW Disclaimer These files work fine for me, I'm not guaranteeing that they will work for you. If you use them, it is at your own risk! There is no rocket science here, just some routines I use to manage files. A few routines offer some improvements over their Clarion counterparts (like running a program hidden). Short Description: File_Exists(FileName) - True if the file exists. Delete_File(FileName) - Deletes the specified file. Create_Directory(DirectoryPath) - Creates the last directory in the Path Delete_Directory(DirectoryPath) - Deletes the directory and all files Copy_File(Source,Target) - Copies a file (and renames it) Run_Wait(FileName,WStyle) - Runs a file and waits for it to terminate 0 = Hide (Works w/DOS files too if command.com properties are set to run in a window and "Close on exit" is checked) 1 = Normal with focus 2 = Minimized with focus 3 = Maximized with focus 4 = Normal without focus 6 = Minimized without focus Run_NoWait(FileName,WStyle) - Runs a file async. (Same as above) Rename_File(OldName,NewName) - Renames (Moves) a file (Not across Disks) Free_Space(Drive) - Returns the amount of free space on a drive. Play_Wave(WaveFile) - Plays a wave (.WAV) file