Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't add folder name w/ a space programatically
Message
 
To
24/07/2000 08:39:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396092
Message ID:
00396094
Views:
10
Put the folder name in quotes. The resulting command should resemble MKDIR "k:\customer\BUZZ 1\forms" - that should work.

>Hello everyone,
>I have an annoying little problem here. My company's file structure on the server has a main customer folder, and then most companies who are our customers have their own folder inside that main folder. For those that don't already have a folder though, my program needs to be able to add thier folder with the name being their 6-character company code. The problem now is that some of the companies have a space in their company code, and the MKDIR and MD commands don't allow me to properly add these folders.
>
>You see the DIRECTORY() function will tell me that folder:
>
>k:\customer\BUZZ 1\forms
>
>does not exist. Then I say:
>
>MKDIR k:\customer\BUZZ 1\forms
>
>and a folder is created named 'k:\customer\BUZZ', because it doesn't recognize anything after the space! It seems that DIRECTORY() interprets the command correctly, but MKDIR, and MD don't like it. Does anyone know a way around this?
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform