close
Blogtrottr
批踢踢實業坊 EZsoft 板
 
Re: [請問] 寫批次檔 但是內含簡體中文有解嗎?
Aug 5th 2013, 14:13, by snowwolf725

作者snowwolf725 (空之境界)

看板EZsoft

標題Re: [請問] 寫批次檔 但是內含簡體中文有解嗎?

時間Mon Aug 5 14:13:56 2013

※ 引述《homobibi (homobibi)》之銘言: : 我想寫一個簡單的net use批次檔 : 但是有些伺服器資料夾名稱含有簡體字 : 例如 : @ echo off : net use X: \\192.168.2.xxx\二厂公共区域 : 那個區 如果編碼是ANSI就會變亂碼 : 改編碼 批次檔又會出現錯誤 : 請問這個有解嗎? 1. 在執行命令前用 chcp 65001 切換編碼 2. 將 bat 檔存成 UTF-8 without BOM 格式 3. 如果要在命令提示視窗中顯示結果, 需要在命令提示視窗中 將預設的字型由Raster Fonts改成Lucida Console http://blog.darkthread.net/post-2011-08-11-command-prompt-codepage.aspx ================================ @ echo off chcp 65001 net use X: \\192.168.2.xxx\二厂公共区域 ================================ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.33.151.121

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 nbv14tiaw18li 的頭像
    nbv14tiaw18li

    進擊的巨人14, 進擊的巨人線上看, 進擊的巨人漫畫, 進擊的巨人遊戲, 進擊的巨人 動畫, 進擊的巨人 線上漫畫, 進擊的巨人14線上看, 進擊的巨人13, 進擊的巨人 h, 進擊的巨人op

    nbv14tiaw18li 發表在 痞客邦 留言(0) 人氣()