「Windowsコマンド」expandでcab圧縮ファイルを解凍する

構文
expand オプション ファイル名
オプションについて
/r 展開先ファイルを省略します。
/d cabファイルの中身を一覧表示します。
/F:ファイル名  cabから展開するファイルを指定します

使用例
1.「test100.cab」の中身を一覧表示します。
実行例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
C:\study\bat>expand /d test100.cab
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.
test100.cab: test100.txt
C:\study\bat>expand /d test100.cab Microsoft (R) File Expansion Utility Copyright (c) Microsoft Corporation. All rights reserved. test100.cab: test100.txt
C:\study\bat>expand /d test100.cab
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.

test100.cab: test100.txt

2.test100.cabの中身のファイル名を展開します。
実行例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
C:\study\bat>expand /r test100.cab
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.
C:\study\bat\test100.txt を展開キューに追加しています
ファイルを解凍しています...
ファイルの解凍が完了しました...
C:\study\bat>expand /r test100.cab Microsoft (R) File Expansion Utility Copyright (c) Microsoft Corporation. All rights reserved. C:\study\bat\test100.txt を展開キューに追加しています ファイルを解凍しています... ファイルの解凍が完了しました...
C:\study\bat>expand /r test100.cab
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.

C:\study\bat\test100.txt を展開キューに追加しています

ファイルを解凍しています...

ファイルの解凍が完了しました...

 

Cmd

Posted by arkgame