いつも参考にさせて頂いております。
「承認書」というフォルダの中にあるエクセルファイルとGoogleスプレッドシートのみに処理を行うアクティビティを作成中です。
承認書フォルダには他の拡張子のファイルも格納されており、ファイル数のカウントがうまく行かないため、処理の前に上記の拡張子以外のファイルを「エラー」フォルダに移動させたいです。
その場合、どのようなアクティビティを使用すればよろしいでしょうか。
どなたか教えて頂けますと幸いです。
いつも参考にさせて頂いております。
「承認書」というフォルダの中にあるエクセルファイルとGoogleスプレッドシートのみに処理を行うアクティビティを作成中です。
承認書フォルダには他の拡張子のファイルも格納されており、ファイル数のカウントがうまく行かないため、処理の前に上記の拡張子以外のファイルを「エラー」フォルダに移動させたいです。
その場合、どのようなアクティビティを使用すればよろしいでしょうか。
どなたか教えて頂けますと幸いです。
Hie @ml.system you can use for each file in a folder so you get all the files in that folder now after that use 1 if condition so if file not contain excel extension you can use Move file activity in the then branch you it will move all file except excel files.
cheers
ご連絡ありがとうございます。
.xlsxと.gsheetの二つ以外を除外したいのですが、複数選択は可能ですか?
yes you can you can add more like if there are more file you can include them . so that will check condition for both.
like this
Not CurrentFile.ToString().Contains(“.xlsx”) AndAlso Not CurrentFile.ToString().Contains(“.txt”)
so this will only take file which are not excel and text file
cheers
こんにちは
別解ですが、ファイルシステム上なら、robocopyコマンドを呼び出す手もあるかと思います。
robocopy srcFolder distFolder /mov /xf *.xlsx *.gsheet
ありがとうございます!
これで解決しそうです!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.