參考網址:https://kknews.cc/zh-tw/tech/prpbq2.html
公式=SUMPRODUCT(1/COUNTIF($B$3:$B$16,$B$3:$B$16))
參考網址:https://www.abyssmedia.com/quickbfc/
參考網址:Codebug
用powershell 為makecode app 建立捷徑
$TargetPath = "shell:AppsFolder\MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar!App" $ShortcutFile = "$Home\Desktop\MakeCodeAPP.lnk" $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile) $Shortcut.TargetPath = $TargetPath $Shortcut.Save()
get-appxpackage > d:\application_list.txt 可以得到 APP名稱列表
Name : MicrobitEducationalFounda.196216C47839B Publisher : CN=DA0852B7-E38D-4F10-9429-7A96575322FD Architecture : X64 ResourceId : Version : 1.1.0.0 PackageFullName : MicrobitEducationalFounda.196216C47839B_1.1.0.0_x64__e88r6s0b2swar InstallLocation : C:\Program Files\WindowsApps\MicrobitEducationalFounda.196216C47839B_1.1.0.0_x64__e88r6s0b2swar IsFramework : False PackageFamilyName : MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar PublisherId : e88r6s0b2swar IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok
找到PackageFamilyName : MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar 在後面加上「!App」
@ECHO OFF TITLE 建立 Xshell & Xftp 捷徑 mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\Xshell6Portable.lnk""):b.TargetPath=""%~dp0Xshell6Portable.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close") mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\Xftp6Portable.lnk""):b.TargetPath=""%~dp0Xftp6Portable.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close") echo Xshell & Xftp 捷徑已建立 pause
這個檔案必需存成bat檔才能正常執行,複製到CMD的環境執行會發生問題(%~dp0 會發生錯誤)。
快閃人生 【批次檔】%CD% 與 %~dp0
%CD%:Current Directory, 當前工作目錄位置
%~dp0:批次檔存在的目錄位置
關於%~dp0其實是%0參數的衍伸用法(可以使用CALL /?查閱詳細說明)
首先執行下面例子先看看結果:
@ECHO OFF CLS ECHO %%0 = %0 ECHO %%~d0 = %~d0 ECHO %%~p0 = %~p0 ECHO %%~n0 = %~n0 ECHO %%~x0 = %~x0
從CALL /?的說明頁面中, 得知在參數%n(%0, %1, … %9)之間加了波浪符號(~)與相關的修飾字詞後, 就會有擴充的支援。
網址:http://books.gotop.com.tw/download/AEZ020100
Scratch 3.0 多媒體遊戲設計 & Tello無人機 http://gogo123.com.tw/?page_id=10787
https://gogo123.com.tw/scratch-3-0/