Launch properties dialog for a shortcut
Keywords: Launch properties dialog shortcut
Question:
Is there a way to launch the Windows properties dialog on a selected shortcut within WinBatch? I am working
on a network upgrade and I need to be able to modify the shortcuts and change the target location. We have
over 1000 PCs to modify and I want to automate the process as much as possible. I am trying to avoid writing
my own shortcut properties edit program since Windows has already done the work. I want to be able to locate
the shortcuts in WinBatch and then launch the properties dailog so I can make changes.
Answer:
The following should do it:
lnkfile="C:\BizDocs\Incoming\a.wbt.lnk"
ShellExecute(lnkfile,"","",@normal,"Properties")
WinWaitClose... ; to wait for the properties dialog to close
Article ID: W15297
File Created: 2002:09:05:13:51:08
Last Updated: 2002:09:05:13:51:08