lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

asm:dosbox_masm汇编语言的脚本(win)

 

 

 

 

一、脚本

 

 

  1、删除特定目录的文件【*.obj    *.exe】

 

 1 ::    file_name    =    doe.bat
 2 ::    doe    =    [d]elete [o]bj [e]xe
 3 
 4 ::    function:    delete *.obj *.exe files in the "SRC" directory.
 5 
 6 ::    environments    =    dosbox.exe    (doe.bat has been ran in the dosbox.exe)
 7 
 8 
 9 
10 
11 @echo    off
12 
13 ::    position    =    c:\src
14 c:
15 cd    src
16 
17 ::    list files before delete command
18 echo    --  [ before delete:  list files ]  --
19 dir
20 
21 ::    delete files *.obj *.exe in the "c\src" directory
22 echo    ==  [ delete:  *.obj, *.exe ]   ==
23 del    *.obj
24 del    *.exe
25 echo    ==  [ delete: over ]  ==
26 
27 ::    list files after delete command
28 echo    --  [ after delete:  list files ]  --
29 dir

 

 

  .

posted on 2023-01-09 17:15  lnlidawei  阅读(28)  评论(0编辑  收藏  举报