Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't add folder name w/ a space programatically
Message
De
24/07/2000 08:39:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can't add folder name w/ a space programatically
Divers
Thread ID:
00396092
Message ID:
00396092
Vues:
48
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?
Paul A. Busbey
Victoria Insurance
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform