Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HELP! MD command creating directories with no name...
Message
De
10/05/2001 15:40:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/05/2001 19:02:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00505513
Message ID:
00505955
Vues:
32
>>Yes...you're correct...the code is not shown exact...and your assumption at what I was getting at was correct...
>>
>>The problem now is getting rid of the bad dir...so what is WSH?
>
>Bob,
>
>WSH is the Windows Scripting Host. But instead of using
>that an easier way which worked on Windows 2000 VFP6
>is just to use the same command you used to create the
>directory but replace MD with RD:
>
>
>MD "C:\Test\    \" && Makes a blank folder
>
>RD "C:\Test\    \" && Removes the blank folder
>
>
>
>However this only works if you use the same amount of
>spaces for the name of the folder.

This should be easy, these directories, no matter how weird named, should still be found by adir(), stuffed into nice variables, which should be used with the above commands.

BTW, FP 1.02 and some versions of GWBasic were the only beasts I managed to persuade into creating filenames with embedded spaces under DOS3.1 - don't know how they managed to circumvent the OS limitations. Another good one was an unreachable directory - just name it CD, and try to "cd cd".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform