Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MoveFolders problem
Message
De
29/11/2000 13:01:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446793
Message ID:
00446887
Vues:
8
>Hi Ed & George,
>
>I'm trying to rename one filename to another filename according to your article in www.vfug.org November issue.
>
>I got this Error both on my home Windows 98 machine and here at work on Win95.
>OLE error code 0x"name" (Error 1426)
>oFSO.MoveFiles("d:\mtd\mtd.*", "d:\mtd\mtd1.*")
>
>d:\mtd is the local directory on my local d drive and file mtd.zip exists there.
>
>What's the problem? Do I miss something?
>
>Thanks in advance.

Nadya,
First there is a slight typo oFso.MoveFile() not movefiles :)
In destination as far as I know you can't use wildcards.
oFSO.MoveFiles("d:\mtd\mtd.zip", "d:\mtd\mtd1.zip")
should work.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform