delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1998/03/30/11:20:20

Date: Mon, 30 Mar 1998 18:13:40 +0100
From: Matthias Paul <PAUL-MA AT reze-1 DOT rz DOT rwth-aachen DOT de>
Subject: Re: File Names with Spaces
To: opendos-support AT delorie DOT com
Reply-to: Matthias DOT Paul AT post DOT rwth-aachen DOT de
Message-id: <C16CC027D4@reze-1.rz.rwth-aachen.de>
Organization: Rechenzentrum RWTH Aachen

On Sat, 28 Mar 1998 Travis Siegel wrote:
> On Sat, 28 Mar 1998, Gene Kwatny wrote:
> 
> > Can anyone suggest a straightforward method to delete files whose names
> > have embedded spaces in DOS with no long file name support (i.e standard
> > 8.3 notation).
> 
> Yep, sure can.  Assuming the file is something like "1 2 3" then to delete
> it, all you need to do is something like;
> del 1?2?3
> Just place a question mark where the spaces are, and it'll happ9ily
> disappear. :)  Hope this helps.

BTW, if you happen to find a 8.3 directory with spaces in the name,
e.g.

 c:\1 2 3\
 
just use DR-DOS' COMMAND.COM RMDIR/RD command -
you won't need LFN support to be loaded for this:

 RD 1 2 3
 
Some other shells support it as well, if you put the name in quotes,
like 

 RD "c:\1 2 3"
 
or for files:

 DEL "1 2 3" 
 
 Matthias
--------------------------------------------------------------------
 Matthias Paul, Ubierstrasse 28, D-50321 Bruehl, GERMANY
 eMail: <Matthias DOT Paul AT post DOT rwth-aachen DOT de>
 Web  : http://www.rhrz.uni-bonn.de/~uzs180/mpdokeng.html
-------------------------------------------------------------------- 
 Caldera Digital Research Systems/OpenLinux: http://www.caldera.com/
--------------------------------------------------------------------

- Raw text -


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