我都會去裝gnu win32,這樣在windows console中就有一堆gnu工具可以使用了。
參考:
http://en.wikipedia.org/wiki/GnuWin32
http://gnuwin32.sourceforge.net/
以前也會去裝cygwin,但是說實話,cygwin跑的有點慢...如果想在windows中跑bash環境,可以考慮msys,這是MinGW(windows環境下的GCC)底下的一個子計畫:
http://www.mingw.org/wiki/MSYS
任何一隻程式都是可以直接下達語法的. 差別只在提供了多少命令列參數, 一般程式通常都會提供命令列參數的, 有些程式不提供命令列參數, 許多程式提供圖形界面來設定參數.
看軟體提供的API嚕
有提供API就可以給參數
基本上所有軟體都可以在DOS下操作
其實DOS也是作業系統
只是他是屬於早期一點的作業系統
http://zh.wikipedia.org/wiki/DOS
可以說一下你的用途嗎? 這樣大家比較好回覆
7-Zip 4.47 beta Copyright (c) 1999-2007 Igor Pavlov 2007-05-27
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssw: compress shared files
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries