I would like to be able to launch a Windows 10 UWP app from a single command line (cmd Windows 10) input. I am having issues concatenating the strings together to form the entire package name (this needs to be dynamic because the ending string of the app can change with each deployment). Here is the logic I have:
- Find the app package name in the LocalAppData directory (i.e. packageName_postfix)
- Append "!App" to the end of the result in #1
- Pass that string into the launch function:
I have gotten to a point where I can find #1, but for some reason when I try to append it to #2, I get a NULL value. Here is my current command:
1.) & 2.): Get Package Name and Append it to "!App"
set "x=|dir %LocalAppData%\Packages /b | findstr packageName" & set "y=!App" & set "z=%x%%y%" & echo.%z%
3.): Launch UWP App
explorer.exe shell:appsFolder\packageName_postfix!App
Any ideas?
shell:appsFolder
is a command not a path component. – Rubenrubens!App
. – Tropophilous