Knowledge Base

ShellBrowser Delphi Components

Question / Problem

What is the syntax for renaming a file with JamFileOperation? Where does the new file name go?
What is to do if you want to copy a file to the same folder and rename it at the same time?

Answer / Solution

To rename a file, you can use code like this:

JamFileOperation.Destination := 'C:\Temp\ ';

This code will rename C:\Temp\ to C:\Temp\

To rename multiple files, you have to execute this code in a loop.