www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/02/06:00:14

From: eglebbk AT dds DOT nl (Evert Glebbeek)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help!!! how to enter a directory, which has a space?
Date: Sat, 02 Sep 2000 00:03:30 GMT
Organization: Physics student, University of Amsterdam
Lines: 29
Distribution: world
Message-ID: <39b04097.52084739@news.wins.uva.nl>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000829083832 DOT 25491F-100000 AT is> <39aebe69 DOT 40541574 AT news DOT wins DOT uva DOT nl> <2svtqs0159ctcltc6igufs09c261u91kmb AT 4ax DOT com> <2110-Fri01Sep2000083853+0300-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: stol-117-206.uva.studentennet.nl
X-Trace: info.wins.uva.nl 967853077 746 145.98.117.206 (2 Sep 2000 00:04:37 GMT)
X-Complaints-To: usenet AT science DOT uva DOT nl
NNTP-Posting-Date: Sat, 2 Sep 2000 00:04:37 +0000 (UTC)
X-Newsreader: Forte Free Agent 1.11/32.235
Path: news.mv.net!newspeer.phoen-x.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!skynet.be!newsfeed1.news.nl.uu.net!sun4nl!news.science.uva.nl!not-for-mail
Xref: news.mv.net comp.os.msdos.djgpp:103071

Newsgroup: comp.os.msdos.djgpp
 From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
 On Fri, 01 Sep 2000 08:38:53 +0200

>> From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: Fri, 01 Sep 2000 01:00:03 GMT
>>
>> >>       cd "a b"
>> >
>> >I'm not sure if that will work in plain DOS (I know, win9X renames it
>> >as ab~1, but it is possible to have file and directory names
>> >containing spaces in plain DOS as well).
>> 
>> Don't most scandisk versions report spaces in filenames as invalid
>> characters?
>
>On Windows or on DOS?
>
>On Windows, "a b" is a valid file name, so scandisk does nothing with
>it.  On DOS, "a b" cannot happen, since DOS thinks that the first
>blank in the name is the end of the name part.

It *can* happen. I own a program that creates a dircetory with a name
like "a b" as part of it's copy protection. I was also able to create
such directories and files from within GW-BASIC(!).
I think that if you actually pass a string containing a space to Int
21h/function 39h, you will end up with a directory with a space in the
name.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019