TYPE [-a|-u] file [file...]
-a - Display file in ASCII format
-u - Display file in Unicode format
file - Name of file to display
Examples:
* To display a file in Unicode format:
fs0:\〉 type -u pause.nsh
File: fs0:\pause.nsh, Size 204
#
# Example script for 'pause' command
#
echo pause.nsh begin..
date
time
pause
echo pause.nsh done.
* To display a file in ASCII format:
fs0:\〉 type -a pause.nsh
File: fs0:\pause.nsh, Size 204
#
# E x a m p l e s c r i p t f o r ' p a u s e ' c o m m a n d
#
e c h o p a u s e . n s h b e g i n . .
d a t e
t i m e
p a u s e
e c h o p a u s e . n s h d o n e .
* To display multiple files:
fs0:\〉 type test.*
File: fs0:\test.txt, Size 23
How to Install?
File: fs0:\test.nsh, Size 48
time
stall 3000000
time
你好,請問在EFI Shell下能做到read/write的動作嗎
回覆刪除之前有照著for迴圈範例 想做到讀寫的動作
#
# Sample for loop type contents of all *.txt files
#
for %a in *.txt
type %a
echo ===== %a done =====
endfor
但我似乎不能使用ECHO %a 直接把內容物印出 印出只能有檔名
我希望能寫出 能讀取變數和對記事本寫入字串的程式
UEFI的Shell目前沒有Linux的shell那麼強大。現階段以你的應用,可能需要撰寫程式去處理字串。
刪除