Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP! MD command creating directories with no name...
Message
From
10/05/2001 15:40:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/05/2001 19:02:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00505513
Message ID:
00505955
Views:
33
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform