| View previous topic :: View next topic |
| Author |
Message |
VincentMagnotta
Joined: 28 Jul 2008 Posts: 46
|
Posted: Tue Feb 21, 2012 8:34 am Post subject: Duplicating a file |
|
|
How do I duplicate a file? I need two copies of a file in the same directory, how do I accomplish this with automize? Copy tasks won't change the name of the target and rename will get rid of the original?
This should be easy...
Example:
I have:
I need:
| Code: |
C:\mydir\abc.txt
C:\mydir\abc2.txt
|
(I'm flexible about the new name, as long as it's predictable) |
|
| Back to top |
|
 |
VincentMagnotta
Joined: 28 Jul 2008 Posts: 46
|
Posted: Tue Feb 21, 2012 8:55 am Post subject: |
|
|
ideally, what we'd want is:
|
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Tue Feb 21, 2012 4:51 pm Post subject: |
|
|
This 2 step sequence should work:
Copy task with append to filename field (.trn): result =
abc.txt.trn
Rename task:
filename field = .txt.trn
rename filename field = .trn |
|
| Back to top |
|
 |
|