※ 文章網址: https://www.ptt.cc/bbs/Soft_Job/M.1217087750.A.E57.html
推 TonyQ:有bat不寫幹麼繞一圈作vbs再call shell... - -a 07/26 23:57
→ godelchen:a mis better know why, especially she needs to 07/27 00:17
→ godelchen:backup AD. BAT is for backward compatibility to DOS 07/27 00:17
→ godelchen:NOT Microsoft's recommendation, or SOP. 07/27 00:19
→ godelchen:follow this script you can go up to a very complex 07/27 00:22
→ godelchen:application, but not with BAT. 07/27 00:22
→ godelchen:This toy script i wrote for backing up my PDA, can 07/27 00:23
→ godelchen:help her to adapt into other applications, just 07/27 00:24
→ godelchen:replace "parameter" and the line after WhsShell.Run 07/27 00:25
→ godelchen:With AD, OS locks some object for accessing, you 07/27 00:28
→ godelchen:need vbs to call XXX to reach them. 07/27 00:29
→ godelchen:however, it's ok at this place if it can be backuped 07/27 00:31
→ godelchen:by winrar, she just need to read those parameters by 07/27 00:32
→ godelchen:herself, i set those for my own use. 07/27 00:33
→ godelchen:But i admit, TonyQ, for beginner, it's easier in BAT 07/27 00:39
推 TonyQ:如果這種script不讓 bat作 , 那我就不認為bat有存在的意義了 07/27 02:08
→ TonyQ:ms-dos 本身就已經是一個頗完整的shell 平台了. bat反倒不是 07/27 02:09
→ TonyQ:我相信不用提醒你 winrar是使用command line tool , not ap. 07/27 02:10
→ TonyQ:人家說向下相容是指同系列的產品相容 , ms-dos反而還擴充了 07/27 02:12
→ TonyQ:dos所沒有的功能 , 這也是另一個點. 07/27 02:12
→ TonyQ:每件事情存在都有其意義 . 07/27 02:12