[PowerShell]One line to pack individual PDF file into their BaseName.RAR
2010-07-13 21:33
387 查看
gci *.pdf | % {iex $("rar mf -m5 -rr1 {0}.rar '{1}'" -f $($_.BaseName -replace "\s+","."),$_.Name)}
gci is Alias of Get-ChildItem
iex is Alias of Invoke-Expression
rar is the execution file which default locate at C:\Program Files\WinRAR
相关文章推荐
- gzjoin -- command to join gzip files into one gzip file
- How to download your ABAP Codes into PDF file?
- How to import LDIF file into LDAP server with command line
- unable to install breakpoint in ...(file name) due to miss line number attributes.
- [Linux cmd line] How to convert a binary file into output in C include file style.
- Eclipse导入Android工程出现Project has no default.properties file! Edit the project properties to set one.的解决方法
- Mysql运行脚本时出现问题:Failed to open file 'file_name' , error: 2
- 引用外部Android 提示Project has no default.properties file! Edit the project properties to set one.
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- How to get trace file from getbfno.sql gettrcname.sql
- VS code 中的各种变量 ${file},${fileBasename}
- Android Studio-Didn't find class XXX on path: DexPathList [zip file "/data/app/packagename/base.apk]
- How to convert a latex to pdf file
- ORA-01264 Unable to create logfile file name的问题处理
- Unable to find interceptor class referenced by ref-name default - interceptor-ref - file
- 创建虚拟机错误解决:Unable to find a 'userdata.img' file for ABI x86 to copy into the AVD folder.
- Android问题集锦之九:Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- [cernRoot]How to get tree name from root file
- IDl save the command line to file