0
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 5 years have passed since last update.

Windows標準機能だけの高速ファイルマージ自作ツール

Last updated at Posted at 2019-06-16

動作確認環境

OS : Windows 10 Home
WSH : Windows Script Host Version 5.812

ツール作成背景

細分化されたcsvファイルをマージする必要があり、
手動で行う場合、以下の問題があった。
・ヒューマンエラー
・10万行のファイルもあるため、ファイル開くだけでも手間

上記から、世の中のファイルマージツールを使用したいが、
開発プロジェクトで使用できるツールに制限があり、
自作でツールを作成するに至った。

マージツール

当初は、batファイルだけで作成したが、
以下の性能問題が発生。
・100MBのファイルマージに2時間以上かかる。
そこで、マージ処理部分だけはVBS(VBScript)に置き換えることで、
1分ぐらいに改善した。
ソースは以下を参照ください。

ソース

GitHubで公開しているため参照ください。
merge_tool

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