I am using 7.6.0 and 7.7.0 and trying to rename a file using a couple of wildcards (*) and I am running into the following issue.
The file name is something like this:
and I am trying to drop everything after the .txt, so it should wind up like this:
I tried in both File Copy and Rename File to use various combinations similar to this:
The Copy File task (with the post process mask) runs without error, or output, and does not rename the file.
The Rename File task outputs the following error and fails, deleting the file it is trying to rename
Exception in Task: System.ComponentModel.Win32Exception (0x80004005): Error 2 moving file '\\server\556\LHNS_548_TEHN_GHESGY_CUSTOMER_20151113_060402.txt.5438082.REGISTERED' to '\\server\556\LHNS_548_TEHN_GHESGY_CUSTOMER_20151113_060402.txt.5438082.REGISTERED': The system cannot find the file specified.
at ZetaLongPaths.ZlpIOHelper.MoveFile(String sourceFilePath, String destinationFilePath)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.ECJDHCFCEOFKDAGEFAFFFJFBNMDKFHIGHBOM.ONHALLOJFJGKIGDKOCPOCLFCDLKADGGGHFDP() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\clsProcessTaskFileRename.vb:line 62
When I use something like this,
The .REGISTERED is replaced with .txt, as expected. However, this of course leaves me with the numbers that I still need to remove.
Am I just missing some way of enclosing the wildcard or something?
Edited by moderator
| Reason: Not specified