Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RENAME function - files with spaces
Message
From
07/02/2004 11:30:26
 
 
To
07/02/2004 11:24:12
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00875169
Message ID:
00875171
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform