bat配置檔案的一些符號所代表的意思?

2022-05-09 07:06:11 字數 1032 閱讀 5162

在.bat檔案中有一些特殊符號,看的多了有點暈,希望知道的能幫我分析下:

set bsp_debugport=serial_uart0

@rem set bsp_debugport=serial_uart1

@rem set bsp_debugport=serial_uart2

@rem set bsp_debugport=serial_uart3

@rem在這裡改怎麼理解?

還有在source檔案中:

$(_targetplatroot)\lib\$(_cpuindpath)\ov9650_module.lib      

#  $(_targetplatroot)\lib\$(_cpuindpath)\saa7113_module.lib    

這裡的#到底是注釋還是選擇?

希望知道的能幫忙看下。

謝謝~~~

「#」是注釋,

乙個「_」打頭是通用變數。

兩個「__」打頭是內部變數。

以上兩種變數由微軟pb工具初始化,我們一般最好不改動它。

只用sysgen_,bsp_,img。。。等變數為好。

其實這些檔案都是乙個批處理檔案,具體的指令可以參考windows shell 程式設計指令。

比如set bsp_debugport=serial_uart0

set 用來設定乙個環境變數 bsp_debugport就代表serial_uart0從意義上來看 好像是bsp除錯埠為串列埠0,具體的要看具體的實現**。

@rem 跟#類似為注釋掉一行

$()為引用括號裡的環境變數

比如:set _targetplatroot=「c:\wince5.0\platform"

set  —cpuindpath = armlib

$(_targetplatroot)\lib\$(_cpuindpath)\ov9650_module.lib   

實際上這個路徑就相當於  

「c:\wince5.0\platform\lib\armlib\0v9650_module.lib"

mvc一些配置檔案的存放位置

web.xml中classpath 和classpath 有什麼區別?classpath 只會到你的class路徑中查詢找檔案 classpath 不僅包含class路徑,還包括jar檔案中 class路徑 進行查詢.存放位置 1 src下面 需要在web.xml中定義如下 contextconfi...

apache裡的一些配置檔案備註

serveradmin 757927051 qq.com documentroot e www servername seo666.cn serveralias www.seo666.cn seo666.cn errorlog logs dummy host.x error.log customlo...

Spring配置檔案中的一些標籤

經常看到resource下面有多個關於spring的配置檔案,其實是多個 spring 配置檔案通過 import 方式整合的。import標籤 配置檔案會先合併,後解析,也就是說,無論是命名空間還是配置的內容,都會合併處理。bean標籤 我們只需在spring容器能載入到的地方配置bean就可以把...