🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #7016

Re: Silly question (accessing /)

#7016
From: Robert C Sanders
Date: Fri, 27 Jun 1986 19:02
22 lines
1608 bytes
In article <789@unirot.UUCP> liz@unirot.UUCP (Mamaliz ) writes:
>All of a sudden I am terribly confused.  The DOS technical reference tells
>me that \ is not a file.  How do I find out what files are under it then?
>Where do I find it?  I do not hack assembler and would really like to do
>what I am doing in C.  So, how do people deal with the fact that root has
>no . ?

   Think of it this way: D:\ and D: are considered synomous for backwards
compatibility -- where 'D' refers to a drive name.  Whenever you want to
check for '.', first call the DOS interupt 21H (most C libraries allow this)
for the function that returns the current drive/path description as a string,
and then strcmp() it to some "D:\".  If true (0), you now know the name of
'.'.
					- bob
-- 
------------
Continuing Engineering Education Telecommunications
Purdue University

"Time is a mouse that requires constant feeding..." -- me

	...!ihnp4!pur-ee!pc-ecn!sandersr
Technical Details
Message-ID: <530@ecn-pc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!ut-sally!seismo!gatech!akgua!whuxlm!whuxl!houxm!hropus!riccb!ihopa!ihnp4!inuxc!pur-ee!ecn-pc!sandersr
References: <789@unirot.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!ut-sally!seismo!gatech!akgua!whuxlm!whuxl!houxm!hropus!riccb!ihopa!ihnp4!inuxc!pur-ee!ecn-pc!sandersr
From: sandersr@ecn-pc.UUCP (Robert C Sanders)
Newsgroups: net.micro.pc
Subject: Re: Silly question (accessing /)
Message-ID: <530@ecn-pc.UUCP>
Date: Fri, 27-Jun-86 15:02:20 EDT
Article-I.D.: ecn-pc.530
Posted: Fri Jun 27 15:02:20 1986
Date-Received: Mon, 30-Jun-86 03:31:57 EDT
References: <789@unirot.UUCP>
Reply-To: sandersr@ecn-pc.UUCP (Robert C Sanders)
Organization: Electrical Engineering Department , Purdue University
Lines: 23