DOSLibDOSLibraryProgrammer’sReferenceVersion4.0iiiTABLEOFCONTENTSDOSLibVersion4.0©1992-96RobertMcNeel&Associates.Allrightsreserved.Printed03-13-97inUSA.RobertMcNeel&Associates3670WoodlandParkAvenueNorthSeattle,WA98103Phone:(206)545-7000FAX:(206)545-7321TechnicalSupport:(206)545-7321BulletinBoardService:(206)545-7303Internet:http://www.mcneel.comCompuServe:GOMCNEELDOSLibisatrademarkofRobertMcNeel&Associates.AutoCAD,AutoLISPandARXareregisteredtrademarksofAutodesk,Inc.DOS,MS-DOS,Windows,Windows95andWindowsNTareregisteredtrademarksofMicrosoftCorporation.Allotherbrandsandproductbrandsaretrademarksorregisteredtrademarksoftheirrespectiveholders.LICENSEAGREEMENTPermissiontouse,copy,anddistributethissoftwareforanypurposeandwithoutfeeisherebygranted,providedthattheabovecopyrightnoticeappearsinallcopiesandthatboththatcopyrightnoticeandthispermissionnoticeappearinallsupportingdocumentation.RobertMcNeel&Associatesmakesnowarranty,includingbutnotlimitedtoanyimpliedwarrantiesofmerchantabilityorfitnessforaparticularpurpose,regardingthesoftwareandaccompanyingmaterials.Thesoftwareandaccompanyingmaterialsareprovidedsolelyonan“as-is”basis.InnoeventshallRobertMcNeel&Associatesbeliabletoanyspecial,collateral,incidental,orconsequentialdamagesinconnectionwithorarisingoutoftheuseofthesoftwareoraccompanyingmaterials.TableofContentsIntroduction........................................................................................5SystemRequirements5FilesinDOSLib6InstallingDOSLib6LoadingDOSLib6FunctionOverview8DriveHandlingFunctions................................................................11dos_chkdsk11dos_drive12dos_drives12PathHandlingFunctions.................................................................13dos_fullpath13dos_makepath14dos_path15dos_splitpath16DirectoryHandlingFunctions.........................................................19dos_chdir19dos_mkdir20dos_rendir20dos_rmdir21dos_pwdir22dos_subdir22FileHandlingFunctions..................................................