Anders

CreateInternetShortcut1

Apr 18th, 2011
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !macro CreateInternetShortcut _Basepath _URL
  2. #The documented way to create a .url is to cocreate CLSID_InternetShortcut,IID_IUniformResourceLocator and call IUniformResourceLocator::SetURL but COM is a lot of work so we just assume the internal format never changes and just treat it like a .ini!
  3. WriteINIStr "${_Basepath}.url" "InternetShortcut" "URL" "${_URL}"
  4. !macroend
Advertisement
Add Comment
Please, Sign In to add comment