Gene Wirchenko wrote:
> I tried creating some files with "^^^" in them. VFP does not
> mind them at all AFAICS. The DOS window commands give me grief over
> them. For example,
> ccli^^^.dbf
> will not be recognised as existing if I enter the command
> dir ccli^^^.dbf
> of the form c???^^^. I get "File not found". If I try
> del ccli^^^.dbf
> the error is the
> Could Not Find C:\cbs2dev\ccli^.dbf
> Note that there is only one caret in the error message.
>
> echo hello>ccli^^^.dbf
> creates a file
> ccli^.dbf
> and deleting it with
> del ccli^.dbf
> does not delete it, but does delete
> ccli.dbf
> ! (Dangerous!)
>
> What is up with these filenames? "^" is not reserved AFAIK.
The caret is used as a character modifier in the command window - it
allows characters which might be interpreted as commands to be used as
literals. In parsing "ccli^^^.dbf', the first caret is a command
character: ignore the command aspect of the following character, which
is the second caret - the one that gets included in the file name. The
third caret, like the first, gets stripped as a command, and the '.' is
treated (like the second caret) as a non-command (literal) character.
- Rush


|