I tried use powershell but does not work. How to create complex a desktop shortcut for two exe file from a batch file with path target format as below;
C:\ProgramData\RAD\dataset.exe S\W\T 11:20 "C:\Program Files\program\subp\prg.exe"
Thank you
I tried use powershell but does not work. How to create complex a desktop shortcut for two exe file from a batch file with path target format as below;
C:\ProgramData\RAD\dataset.exe S\W\T 11:20 "C:\Program Files\program\subp\prg.exe"
Thank you
Here's a batch-file which should create a desktop-shortcut which matches the target you provided, (just copy and paste to a new .cmd
file and double click it).
;@Rundll32 advpack.dll,LaunchINFSection "%~0",,1
;@GoTo :EOF
[Version]
Signature="$Windows NT$"
[DefaultInstall]
ProfileItems=AddLnk
[AddLnk]
Name="ComplexShortcut",8,16
CmdLine=16419,RAD,"dataset.exe S\W\T 11:20 """C:\Program Files\program\subp\prg.exe"""
InfoTip="Executing a complex shortcut"
WorkingDir=1
I was unable to guess your second target, so you'll have to try your best to modify the solution yourself. I will not be updating this answer to provide further information or to cover things not asked at the time of the initial question.