Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior with MD?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00835981
Message ID:
00836031
Vues:
9
Travis,

I'm with Trey on this one. I think it's a side effect of the hidden setting on the Application Data subtree. VFP can't handle making all the subdirs at once, but it can make them one level at a time.

I know that VFP freaks out with some really odd errors when it's TEMP folder gets the system or hidden flags set. Periodically for reasons unknown to me (I think the network admins/pc maint crew at the office) the IE history or Cache gets moved into my temp folder. Once that's happened things like ALTER TABLE commands begin to fail because VFP gets part way through the command and can't finish because it can no longer "see" the file.

>I have just recently run across a problem with the MD command in VFP that perplexes me, which means I must be missing something obvious.
>
>If I issue the following in the command window:
>
>MD "C:\test1\test2\test3\test4"
>
>The entire directory structure is created.
>
>However, if I enter something along these lines:
>
>MD "C:\Documents and Settings\SomeUser\Application Data\test1\test2\test3\test4\test5"
>
>I get an error saying "A subdirectory or file c:\documents and settings\someuser\application data\test1\test2\test3\test4\test5\ already exists."
>
>I find this behavior extremely strange and am completely at a loss.
>
>Some information that may help:
>

    >
  • This behavior can be duplicated in VFP7 SP1 and VFP8.
    >
  • It doesn't matter whether it is a Windows 2000 Professional or Windows XP Professional OS. (Same behavior)
    >
  • The "SomeUser" I used above is the user I am currently logged in as, so there aren't any special security privileges/restrictions.
    >

>From what I can tell, it only seems to happen if the SomeUser directory exists. For instance if I issue:
>
>MD "C:\Documents and Settings\Test New User\Application Data\test1\test2\test3\test4\test5\"
>
>everything works ok.
>
>Any help on this matter will be very appreciated.
>
>TIA,
>
>Travis
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform