【問題】請問windows script的語法





laker
2006-04-08, 09:45 PM
Dear All,

"V:\PDB-stop.cmd > C:\WINNT\PDBStop.log 2>&1";

請問我在學如何寫Scirpt去記錄log,
只是常看到上述之 2>$1
請問這是什麼意思?

請教囉,
Dennis




mis339
2006-05-01, 07:26 PM
你有問過Google大神嗎?

http://www.google.com/search?hl=zh-TW&q=2%3E%261&btnG=Google+%E6%90%9C%E5%B0%8B&lr=lang_zh-CN%7Clang_zh-TW

琥珀
2006-05-01, 07:56 PM
使用命令重新導向運算子 (http://www.microsoft.com/technet/prodtechnol/windowsserver2003/zh-cht/library/ServerHelp/04969a04-a424-4776-bdc7-dc5066ce79b2.mspx?mfr=true)