2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【初心者向け】BizRobo!でZipファイルをダウンロードして解凍する

Last updated at Posted at 2021-09-08

BizRoboでのZipファイルのダウンロードと解凍方法

PCでZipファイルを解凍する場合は、ダブルクリックだけで簡単に解凍ができますが、
DS上でZipファイルをダウンロードして、
解凍するには、変数に一旦Zipファイルを取り込み、「Write File」で一旦端末に保存し、
コマンドを使用してファイルを解凍する必要があります。

①対象のWebサイトをロードし、保存したいダウンロードファイルをクリックする

②アクションステップを作成し、「ページ読み込み → ソース抽出」を選択し、下記画像のようにデータの抽出先を「binary」に変更し、一旦DS上の変数にダウンロードファイルを取り込む

image.png

③アクションステップを作成し、「ファイルシステム → ファイル出力」を選択し、ファイル名に任意の場所を指定し、ファイルコンテンツを「binary」に変更する

image.png

④アクションステップを作成し、「その他 → コマンドライン実行」を選択し、コマンドラインを「エクスプレッション」に変更し、以下のコマンドを入力する

【>>powershell Expand-Archive -Path "<<

  • "C:\\demo\\demo.zip"  ←③で指定した場所
  • " -DestinationPath "<<

  • "C:\\demo"
  • " -Force<<】

※1 この際に出力値が正常に表示されていることを確認してください。
※2 2行目の"C:\\demo\\demo.zip"は③で出力した場所を指定します。
※3 4行目の"C:\\demo"はZipファイルの解凍先を指定します。
※4 ファイルパスの¥が2つ重なっているのは、¥が特殊文字になり、特殊文字の前に¥を付ける必要があるためです。
image.png

以上になります。
今後の開発の参考にして頂けると幸いです。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?