Yes, of course. Sorry!
Having a folder full of files with name
abcd.txt.gz, i want to extract these to get the files unzipped, exactly as
abcd.txt.
But extracting with the extract task and extracting type
GZip results in
abcd.txt.tar files.
Maybe there is a solution to solve this Problem with one task, but i haven't any ideas how to realize.
My attempt to solve this with two tasks failed, too. After the first extract task i place another extract task with "TAR" as type with following error:
Exception in Task: System.InvalidOperationException: Cannot determine compressed stream type.
bei SharpCompress.Archive.ArchiveFactory.Open(FileInfo fileInfo, Options options)
bei OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.IJDAGFJMLJFNHKOCGKCOJOBFEPMLKABILLJK.CDJMFGBLNJDPDEJFDKHPAHBBBBMJAIAOLEGJ() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\Archive\clsProcessTaskArchiveDecompress.vb:Zeile 173. - file: C:\...\abcd.txt.tar
Then i tried with three tasks.
1. extract from .txt.gz to .txt.tar
2. List (tar)-files
3. rename (tar)-files (with Loop)
With the function GetFileNameWithoutExtension i get the Filename without the extension, so abcd.txt.
But this way results in following error:
Exception in Task: Error 32 moving file 'C:\...\abcd.txt.tar' to 'C:\...\abcd.txt': process haven't access to file because of using in other process.
Hope this description is more helpfully.