Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a directory
Message
De
08/04/2000 16:25:08
 
 
À
08/04/2000 01:04:23
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00357178
Message ID:
00357269
Vues:
12
>I'm writing a program to convert file and directory names from DOS and WP 5.1 and am having trouble figuring out how to rename a directory in VFP...I need to rename a directory like c:\client\0016 to something like "Sablan vs. Smith"
>
>Can this be done in VFP/a batch file/Windows? I've looked at using !RENAME...but the spaces cause problems (also tried the "_" character). The new filename gets truncated at the space.
>
>It seems the RENAME command in VFP won't work on a directory.
>

You can using the Scripting.FileSystemObject from the WSH (see my sig for ref sites) or the MoveFile() API call.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform