如何將批處理腳本的輸出打印到電子郵件客戶端。批處理腳本
Q
批處理腳本
-2
A
回答
0
如果你可以用cygwin或Linux可能sendmail的吧:
回聲-ne 「主題測試:\ n \ n cat $file
」 | sendmail的mailTObeUSED @
0
從cmd.exe
複製:
- 右鍵單擊標題欄。
- 選擇「標記」。
- 通過將LMB放在一個角上並在另一個角上擡起LMB,用鼠標選擇一個矩形。
- 右鍵單擊(RMB)複製到剪貼板。
要將命令的輸出寫入到一個文件:
- 運行
mycommand.bat > filename.txt
。
警告:如果filename.txt存在,它將被覆蓋! - 打開新創建的filename.txt。
1
不確定我瞭解您的需求,但您可以使用Windows的blat命令行實用程序使用SMTP發送電子郵件(http://www.blat.net/)。
blat -to to_email -f from_email -server smtp_server -body body_text -s subject_text -attacht att_file
2
要顯示一個批處理腳本的在記事本中的輸出(或任何命令),在其中可以容易地複製和粘貼,則可能在命令提示輸入:
your_batch_script.bat > tmpfile && (notepad tmpfile && pause && del tmpfile)
(該在記事本中顯示的臨時文件將在命令提示符下按任意鍵時消失)。
-1
相關問題
- 1. 批處理腳本
- 2. 如何從批處理腳本中運行批處理腳本?
- 3. 批處理腳本後停止向其他批處理腳本
- 4. 交錯批處理腳本處理
- 5. 批處理腳本來處理文件
- 6. 在Windows批處理腳本
- 7. Perforce批處理腳本
- 8. 從批處理腳本
- 9. Windows批處理腳本 - 在
- 10. Serverside FTP批處理腳本
- 11. 通過批處理腳本
- 12. 使用批處理腳本
- 13. 批處理腳本編程
- 14. 準備批處理腳本
- 15. xcopy的批處理腳本
- 16. 使用批處理腳本
- 17. 批處理腳本問題
- 18. 在批處理腳本
- 19. 在Windows批處理腳本
- 20. 批處理腳本問題
- 21. FFmpeg的批處理腳本
- 22. 在批處理腳本
- 23. 批處理腳本比較
- 24. 在Windows批處理腳本
- 25. 運行批處理腳本,PowerShell腳本
- 26. 批處理腳本命令會自動停止批處理腳本
- 27. 退出調用另一個批處理腳本的批處理腳本
- 28. 集循環在我的批處理腳本打開批處理文件腳本
- 29. 批處理腳本檢查和清理
- 30. 批處理mysql腳本/計劃運行批處理作業
哪個客戶端和操作系統? – Eugene 2011-10-12 01:23:06