Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy and rename Fichs with WSH
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984296
Message ID:
00984320
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform