Zipファイルのワークフロー作成

フォルダ内のzipファイルを解凍し、その中にある2つのファイル名を結合して、解凍後のフォルダ名に変更します。そして、このフォルダを特定のフォルダに移動したいです。この操作を複数のzipフォルダに対して繰り返し実行したいです。

zipファイル内のファイル名確認

ファイル名を結合してフォルダ名を変更、変更後別のフォルダに移動させたいです。
無題3

1 Like

@koyo.osanai

All the activities are available

  1. For each file in folder (where zip files are present)
  2. Inside loop use unzip file and use currentfile.FullName
  3. Use the output to get the folder it is unzipped to
  4. Use the output of 3 and loop using for eqch file in folder on it to get each file
  5. Then use read range and append range to merge the files
  6. Outside inner loop use move file to move the files to desired folder

Cheers

1 Like

Thank you.
I don’t understand how to create the flow number 5 and number6
Then use read range and append range to merge the files
I apologize for being a beginner. Could you please teach me how to create it?

1 Like

Hi @koyo.osanai

Please try this

BlankProcess20.zip (1.7 MB)

Cheers!!

Thank you! I extracted the zip file, and the destination folder structure became as follows: Destination Folder → Zip Name Folder → Zip Name Folder → File.
In this case, should I add a nested loop (loop inside a loop) within the outer loop (loop for each folder in a folder)?

@koyo.osanai

Could you be more specific?

If i am not wrong, Is this the way you want

Destination Folder->ZipNameFolder->Files 
                  ->ZipNameFolder->Files
                  ->ZipNameFolder->Files

Please check the below xaml

BlankProcess20.zip (1.7 MB)

Cheers!!

@lrtetala
Unzip the file and move the extracted folder to the following tree structure:
Destination Folder > Zip Folder Name > Zip Folder Name > File

I want to perform the task as shown in the attached image.

@koyo.osanai

Please try this

BlankProcess20.zip (1.7 MB)

Cheers!!

@lrtetala
The following error is displayed with the Create Folder activity. Could you please advise on how to resolve this issue?

The error message is as follows:
Create Folder: Value cannot be null. (Parameter ‘path2’)

@koyo.osanai

Please check the variable, it is passing as null. Better to run in debug mode then check

@lrtetala
It seems that no value is being retrieved at the “Filename” part.
What should I do?
Assign: Filename=(FileName+" "+Path.GetFileNameWithoutExtension(CurrentFile.ToString)).ToString.Trim

@koyo.osanai

If possible share your project zip file.
Are you extracted my zip file?

Some modifications are done in below file please run it.
Note: Add your Zip folders in Input folder and run the bot

BlankProcess20.zip (1.7 MB)

Cheers!!

@lrtetala
“I will attach the zip file.
When unzipped using Input, a folder similar to the Output folder will be created.”
BlankProcess20.zip (987.7 KB)