Stretchwickster
Programmer
I am attempting to copy and rename files in one smooth operation using TStFileOperation (provided by TurboPower SysTools 3).
In the manual it says it is possible to do this by setting the SourceFiles property to something like this:
Name(Sourcepath & filename)=Value(Destinationpath &filename)
e.g. c:\temp\to.pas=c:\backup\to.bak
c:\temp\tp.pas=c:\backup\tp.bak
I need to do something similar to this but using variables to represent the path and filename. I'm having trouble working out how to add this kind of line to the SourceFiles property.
Is it something similar to this:
SourcePath + SourceFilename = DestPath + 'Backup'
If so, how do i add it to the code rather than the visual property in the Object Inspector
Your help would be much appreciated
In the manual it says it is possible to do this by setting the SourceFiles property to something like this:
Name(Sourcepath & filename)=Value(Destinationpath &filename)
e.g. c:\temp\to.pas=c:\backup\to.bak
c:\temp\tp.pas=c:\backup\tp.bak
I need to do something similar to this but using variables to represent the path and filename. I'm having trouble working out how to add this kind of line to the SourceFiles property.
Is it something similar to this:
SourcePath + SourceFilename = DestPath + 'Backup'
If so, how do i add it to the code rather than the visual property in the Object Inspector
Your help would be much appreciated