Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Filenames w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 9 Topic 772 of 861
Post > Topic >>

Re: Filenames with "^"

by Rush Strong <rpstrong@[EMAIL PROTECTED] > May 31, 2007 at 12:18 AM

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
 




 9 Posts in Topic:
Filenames with "^"
Gene Wirchenko <genew@  2007-05-30 15:30:34 
Re: Filenames with "^"
"Dan Freeman" &  2007-05-30 16:23:24 
Re: Filenames with "^"
Gene Wirchenko <genew@  2007-05-30 16:54:41 
Re: Filenames with "^"
Rush Strong <rpstrong@  2007-05-31 00:18:37 
Re: Filenames with "^"
Gene Wirchenko <genew@  2007-05-30 22:02:27 
Re: Filenames with "^"
Bernhard Sander <fuchs  2007-05-31 14:16:38 
Re: Filenames with "^"
Gene Wirchenko <genew@  2007-05-31 08:35:05 
Re: Filenames with "^"
Zeke <zeke@[EMAIL PROT  2007-05-31 15:35:58 
Re: Filenames with "^"
Gene Wirchenko <genew@  2007-05-31 08:36:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:36:53 CST 2008.