批次檔讀出機碼

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

批次檔讀出機碼

文章 yehlu »

代碼: 選擇全部

setlocal

@rem 取得機碼的路徑
if "%pdaPartnersID%" == "" (

for /F "usebackq  delims=\ tokens=5*" %%i in (`reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners" `) Do (

set pdaPartnersID=%%j

))

echo "%pdaPartnersID%"


@rem 取得機碼值
if "%pdasyncpath%" == "" (

for /F "usebackq  tokens=3*" %%i in (`reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners\%pdaPartnersID%\Services\Synchronization" /v "Briefcase Path"`) Do (

set pdasyncpath=%%j

))

echo "%pdasyncpath%" 
回覆文章

回到「ASP/VBScript」