2019年11月5日 星期二

Windows Command Line

CMD : Command Line

列出檔案

     dir                            // 列出當前資料夾下的檔案
     dir /s                         // 列出當前資料夾下 + 子資料夾的檔案
     dir /?                         // 列出所有 dir 的指令參數

輸出成檔案

     dir /? > 123.txt               // 輸出成 123.txt

檔案名稱有空格

     net share "共用 資料夾名稱"     // 用雙引號,不能用單引號

參考資料 : 1. https://www.csie.ntu.edu.tw/~r91112/myDownload/WEB/CMD.html
                   2. https://www.itread01.com/content/1543219938.html

Related Posts:

  • PHP 日期加減PHP 日期加減 1. mktime() $date1 = date ("Y-m-d H:i:s" , mktime(date('H'), date('i'), date('s'), date('m'), date('d')-1, date('Y'))); $date2 = date ("Y-m-d H:i:s" , mktime(date('H'), date('i'), date('s'), date('m'), date('d'), da… Read More
  • Strict Standards: Only variables should be passed by reference in 升級 PHP 後 會遇到錯誤回報 Strict Standards: Only variables should be passed by reference in  $SQL->bindParam(':page', getenv('REQUEST_URI')); 看到這報錯後,我變更改成以下 $temp = getenv('REQUEST_URI'); $SQL-bindParam(':page', $temp);… Read More
  • PHP Function with Optional ParametersPHP Function with Optional Parameters 有 2 種方法 1. 用 NULL arguments function method($arg1 = null, $arg2 = null){ $arg1 = $arg1? $arg1: "default_value_for_arg1"; $arg2 = $arg2? $arg2: "default_value_for_arg2"; } 2. 傳 Array… Read More
  • JS 日期操作 JavaScipt 日期操作 宣告 var now = new Date(); var targetDate = new Date("2018/11/24"); // IE 要注意的地方,IE date 格式為 yyyy/mm/dd var somedate = "2019-5-17"; var targetDate = new Date(somedate.replace("-","/")); * 不照IE格式會顯示 NaN-NaN-… Read More
  • 網頁開發(4) JQuery Datepicker 日期選擇器這次要記錄的是 JQuery 中的 Datepicker 其實 Datepicker 是 JQuery UI 裡的一個部件 以下連結可以載 JQuery UI http://jqueryui.com/download/ 載完後就 Link 到自己的檔案裡就可以使用 <link rel="stylesheet" type="text/css" href="jQuery/ui.css"/> <… Read More

0 意見:

張貼留言

Popular Posts