Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

用來在 Macintosh 上將 4 字元常數轉換為值,以供 DirKillShellAppActivate 使用。

語法

MacID ( constant )

必要的 constant 引數包含 4 個字元,用來指定資源類型、檔案類型、應用程式簽章或 Apple Event,例如:TEXT、OBIN、代表 Excel 檔案的 "XLS5" (Excel 97 則使用 "XLS8")、代表 Microsoft Word 的 "W6BN" (Word 97 則使用 "W8BN") 等等。

備註

MacID 可搭配 DirKill 使用,以指定 Macintosh 檔案類型。 由於 Macintosh 不支援以 *? 做為萬用字元,您可以改用 4 字元常數來識別檔案群組。 例如,下列陳述式會傳回目前資料夾中的 TEXT 類型檔案:

Dir("SomePath", MacID("TEXT"))

MacID 可搭配 ShellAppActivate 使用,以藉由應用程式的專屬簽章來指定應用程式。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×