How to open internet shortcut files ("*.url") from File Explorer?

Hi, I have stored internet short file with .url extension in explorer and it contains specific URL link. I need to open this file, and it navigates to URL.
Example: google.url (it contains - https://google.co.in). Please find attached screenshot for reference and help me on this scenario.

You can just read the file as text first. Shortcut files has the format of:

[InternetShortcut]
URL=https://www.sample.com

Then create an assign activity and use a regular expression to get URL:

Regex.Match(contentOfTheShortcut, "(?<=^URL=).+)", RegexOptions.Multiline).Value

This returns the URL, then just use it in the Open Browser or Use Application/Browser as usual.

Hi,

Can you try to use cmd.exe with StratProcess activity as the following?

Regards,

The best way to achieve what you asked is to use Start Process like @Yoichi suggested… buuuut… do you have any reason not to include that URL in either config file or some other way in your automation project?

1 Like

@baranidharan.gajendran

Any specific reason not to save urls in assets or config?

unless youa re getting such files direcly its better you give url directly instead of these files

cheers