As could access the command line of a shortcut?
thx!!
thx!!
local tFile = Dialog.FileBrowse(true, "open link", _DesktopFolder, "Link files (*.lnk)|*.lnk", "", ".lnk", false, true); if File.DoesExist(tFile[1]) then local oWSH = luacom.CreateObject("wscript.shell"); local oShortCut = oWSH:CreateShortcut( tFile[1] ) ; local cPath = oShortCut.TargetPath; Dialog.Message("Target", tFile[1].."\r\n points to\r\n".. cPath ); oShortCut = nil; oWSH = nil; collectgarbage(); end
local tFile = Dialog.FileBrowse(true, "open link", _DesktopFolder, "Link files (*.lnk)|*.lnk", "", ".lnk", false, true); if File.DoesExist(tFile[1]) then local oWSH = luacom.CreateObject("wscript.shell"); local oShortCut = oWSH:CreateShortcut( tFile[1] ) ; local cPath = oShortCut.TargetPath; local Args = oShortCut.Arguments Dialog.Message("Target", tFile[1].."\r\n points to\r\n".. cPath.."\r\n\r\nArguments: "..Args ); oShortCut = nil; oWSH = nil; collectgarbage(); end
local tFile = Dialog.FileBrowse(true, "open link", _DesktopFolder, "Link files (*.lnk)|*.lnk", "", ".lnk", false, true); if File.DoesExist(tFile[1]) then local oWSH = luacom.CreateObject("wscript.shell"); local oShortCut = oWSH:CreateShortcut( tFile[1] ) ; local cPath = oShortCut.TargetPath; local Args = oShortCut.Arguments Dialog.Message("Target", tFile[1].."\r\n points to\r\n".. cPath.."\r\n\r\nArguments: "..Args ); oShortCut = nil; oWSH = nil; collectgarbage(); end
Comment