|
本帖最后由 slore 于 2020-4-26 00:11 编辑
if you use [[STRING, you needn't to use "..." (quotes).
LINK([[%Desktop%\Rasphone.lnk, [[%ProgramData%\Microsoft\Network\Connections\pbk\rasphone.pbk)
if you want to use quotes("), you need use \\ to instead of one single \.
LINK("%Desktop%\\Rasphone.lnk", "%ProgramData%\\Microsoft\\Network\\Connections\\pbk\\rasphone.pbk")
This is a Windows feature, not 3rd part application, it is better to add one of next codes for the shortcut in the end of:
Z:\WimBuilder2\Projects\WIN10XPE\01-Components\PPPoE\main.bat than the PEStartup.bat.
rem if you want to modify the pbk file directly, use this
call LinkToDesktop "Rasphone.lnk" "#pProgramData#p\Microsoft\Network\Connections\pbk\rasphone.pbk"
rem just want to connect with PPPoE
call LinkToDesktop Rasphone.lnk Rasphone.exe
if you only want to add the shortcut on Desktop,
you can just add the batch code in
Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyCustom\Last\_CustomDesktopItems.bat.
Or Even better, you call add a new batch file:
Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyCustom\Last\_RasphoneShortcut.bat
- call LinkToDesktop "#{@shell32.dll,22056}.lnk" Rasphone.exe
复制代码
So that you won't worry about that if I modify the WIN10XPE\01-Components\PPPoE\main.bat file.
|
|