Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Script Host
Message
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
01272405
Message ID:
01272463
Vues:
12
Juan,

Use the Move method.

[Update]
Grr. Pressed send without pasting the sample code.
local lcFile, lcNewName, loFSO, loFile

lcFile				= && Path + FileName
lcNewName			= && NewFile Name, no Path
loFSO				= Createobject('Scripting.FileSystemObject')
loFile				= loFSO.GetFile(lcFile)
loFile.Move(Addbs(Justpath(lcFile)) + lcNewName)
>Hi, how can i rename a file in WSH. I used REN and don't work. HELP.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform