0

我想打开便笺,而无需导航到该位置。在我的研究中,我发现在 Windows 7 中,用户可以在运行提示中键入“stikynot”。与 Windows 10 的先前信息等效的是什么?

我查看了这些站点,但它需要我创建一个快捷方式,我想避免该选项:

https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_store/starting-windows-10-store-app-from-the-command/836354c5-b5af-4d6c-b414-80e40ed14675

https://www.tenforums.com/software-apps/57000-method-open-any-windows-10-apps-command-line.html

我希望这样的东西适用于 cmd 中的 Sticky Notes:

start "" Calc.exe
start "" Notepad.exe
4

3 回答 3

2

所有你需要的是

explorer.exe shell:appsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App

身份证不变。

于 2019-08-15T00:22:57.663 回答
1

由于新的 Windows 更新,旧的便笺已从 Windows 10 中删除。

您可以通过下载此 zip 文件来恢复旧功能。(包含旧程序)

zip 文件不包含病毒。(证明)

以下是恢复程序的简单步骤。

0.5。打开压缩文件

  1. 定位C:\Windows\System32(Windows 键 + r)

  2. 复制并粘贴到StikyNot.exeSystem32

  3. 定位到C:\Windows\System32\en-US

  4. 复制文件并粘贴StikyNot.exe.mui进去C:\Windows\System32\en-US

达达!

您现在可以使用该StikyNot.exe文件

start "" StikyNot.exe在 .bat 文件中

问候, 埃里克

于 2019-08-14T22:49:56.727 回答
1

尽管您的后者 ( TenForums ) 链接看似指向创建快捷方式,但您可以使用批处理文件中的最终命令行作为快捷方式目标。

我编写了以下 PowerShell 脚本57498059.ps1来自动化他们的(有点复杂的)指南:

Import-Module -Name 'Appx'
$StickyNotesName     = 'Microsoft.MicrosoftStickyNotes'
$StickyNotesPack     = Get-AppxPackage -Name $StickyNotesName
$StickyNotesManifest = Join-Path -Path $StickyNotesPack.InstallLocation `
                            -ChildPath 'AppxManifest.xml'

$StickyNotesXml = New-Object Xml
$StickyNotesXml.Load("$StickyNotesManifest")

$StickyNotesExec = 'explorer.exe shell:appsFolder\' +
    $StickyNotesPack.PackageFamilyName + '!' + 
    $StickyNotesXml.Package.Applications.Application.Id

"@$StickyNotesExec" | Out-File -Encoding ascii -FilePath ".\stikynot.bat"
    # write `stikynot.bat` to a folder listed in Windows %path% variable
    # you can type `stikynot` in the run prompt or `cmd` prompt then

"$StickyNotesExec" # return value: cmd command to launch Sticky Notes 
Write-Host "$StickyNotesName - done"  -ForegroundColor Cyan

<# check if it works #>
    Invoke-Expression "$StickyNotesExec"
<##>

结果Sticky Notes应用程序在我的Windows 10 上运行):

PS D:\PShell> .\SO\57498059.ps1
explorer.exe shell:appsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App
Microsoft.MicrosoftStickyNotes - done

type .\stikynot.bat
@explorer.exe shell:appsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App
于 2019-08-15T00:10:54.940 回答