Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and rename Fichs with WSH
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00984296
Message ID:
00984320
Vues:
26
>Hi all,
>
>I want copy all files beginning with 'XXCompan' to a another folder and rename 'yycompan'
>
>it is possible with WSH ?
>
>bernhart
>
>
>
> fso 		= CREATEOBJECT("Scripting.FileSystemObject")
>*-- I have a error here.
>  fso.copyFile("C:\Bobtest\BO\Link\\*XXCompan.*" , "C:\Bobtest\BO\Link\base\YYCompan.*" )
>
The WSH's capability with wild cards is limited. You either have to do the parsing (via the regular expression builder) or use the Shall.Application object.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform