3
0

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 1 year has passed since last update.

【UiPath モダン】エクスプローラを検索した状態で開く

Posted at

あまりシチュエーションは無いかもしれないですが、UiPathで「アプリケーション/ブラウザーを使用」アクティビティを使用してエクスプローラを検索した状態で開く。というのが現場で需要があったので備忘として。

エクスプローラを検索した状態で開くためには「search-msプロトコル」というものを使用することで可能となるらしいです。

いろいろ見てたんですが、奥が深かったのでとりあえずUiPathで開くときにどのようにしたかだけ記載していきます。

image.png
アクティビティとしては、「アプリケーション/ブラウザーを使用」のみです。
アプリケーションパスには、explorer.exeのパスを設定
アプリケーション引数には、検索する文字列とどのフォルダで検索をするのかを設定
image.png

式エディター
String.Format("search-ms:""query={0}&crumb=location:{1}""", 検索する文言, 検索するディレクトリ)

queryやcrumbについてはちゃんと調べて勉強できていないので記載は避けておきます。

3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?