有人還在使用 dos batch語法嗎 ??

找到一個 linux shell vs dos bat 間轉換
www.cnscn.org/htm_data/679/0905/46722.html

不過 好像有人是使用 perl 說perl 比較強大
但是 dos 上也有perl

那是否 linux bash shell
cshell 和 dos 下 bat 彼此間有軟體 可以直接轉換掉 如此可以跨平台使用
不過 windows xp 下難到沒有自己的 shell script指令  ?

如果拿 shell script 來比
不知道 bash shell 是否其其他來強大 ?

那 mac os 上是否也有 shell script

那 ppc wm /winCE 或是 symbian iphone 上 ? palm 上好像就沒有 自己的 shell script
有看到有人問 wince 下能否使用 bat 檔 .

我記得 wince pnd gps 好像有 scp 檔案 是 script
2009-09-30 21:40 發佈
文章關鍵字 語法 dos batch
微軟從 Windows NT 4.0 以後就完全與 MS-DOS 脫離了,
所以現在 Windows 裡面完全不存在任何 "DOS",
你說的東西叫做 command line 命令提示字元,
你需要找的東西是「PowerShell」
請自行搜尋。
作者為網路嘴砲家,長期關注論壇筆戰動向。
convert DOS batch ==> bash cshell
http://tldp.org/LDP/abs/html/dosbatch.html



someone request shell convert

www.daniweb.com/forums/thread5630.html#

=> #!/bin/bash

DOMAIN=mydomain.com

for client in ServerA ServerB ServerC ServerD
do
xhost +$client.$DOMAIN
done


#
SET DOMAIN=mydomain.com
#
FOR %%A IN (ServerA ServerB ServerC ServerD) DO xhost +%%A%.%DOMAIN%



不知道 unix 下 $var
到 dos 下 是否直接使用 %%var 可取代 ?


find

home.att.net/~gobruen/progs/dos_batch/dos_batch.html
SEE HERE
www.computing.net/answers/programming/making-a-list-with-batch/15947.html

and
http://tldp.org/LDP/abs/html/dosbatch.html


對於

for %%var in (*.txt ) do "command"

方式 可以對 *.txt 做處理
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?