>I have a problem using RENAME to rename image files on my disk - where the image file name includes one or more spaces. The command RENAME "C:\myimages\file 001.jpg" TO "C:\myimages\file 999.jpg" works fine.
>
>However, my file names are in variables and the command RENAME &oldfile to &newfile (where oldfile and newfile are the names in the first example - with spaces) does not work. Any clues here? Thank you, Denis
Denis,
Use a name expression
Rename (OldFile) to (NewFile)
Gregory