i have a batch file to add shortcut application in startup menu , this batch file work finely but i don't get the access under a specific file to add it.
Here the code :
@echo off
xcopy /y "C:\_MIT\Phoenix\PhoenixLoader.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs"
I want to add the shortcut "PhoenixLoader.lnk" in the " C:\ProgramData\startlayout\uppc.xml " file uppc.xml file code :
<LayoutModificationTemplate
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1"
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="UPPC">
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\App1.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\App2.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="0"
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
I have to access the file uppc.xml and add " PhoenixLoader.lnk " in the first line of the code instead of app1.lnk :
DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start
Menu\Programs\PhoenixLoader.lnk"