Forum Discussion
Brian Barton
May 24, 2024Copper Contributor
Creating Start Menu Shortcuts to Launch .CMD Files
I am looking to create an MSIX for a custom app. The app is basically dropped in a folder on C:\. I would like to create a Start Menu shortcut in ...Start Menu\Programs\NewApp and have it point to a ...
May 25, 2024
Having a shortcut to the cmd file is possible, but only by using the PSF launcher. But I wouldn't recommend the cmd file be placed at the root of C:\
Your shortcut (entrypoint) would point to PsfLauncher.exe and the config.json file would then target the cmd file as the program to be run by the launcher.
Your shortcut (entrypoint) would point to PsfLauncher.exe and the config.json file would then target the cmd file as the program to be run by the launcher.
- Brian BartonMay 26, 2024Copper Contributor
TIMOTHY_MANGAN Thanks, I will check out the PSF. The .CMD files won’t be on the root of C:\ but rather in a folder that is on C:\.
- May 29, 2024Maybe OK, but you should change those old habits moving forward. The Windows, Program Files (plurar) and ProgramData folders are better handled when VFS comes into play. If a package needs a script, it should consistently be under Program Files\VendorApp\Scripts so you always know where it is. It's all redirected under WindowsApps anyway, so the user never knows but you'd always know where to look.