Python Forum

Full Version: How to read python shortcut target profile directory of Chrome Ink file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Iam trying to read the target profile directory of Chrome Ink shortcut file.

I use the following code

import win32com.client

shell = win32com.client.Dispatch("WScript.Shell")
shortcut = shell.CreateShortCut(r"Grammarly Profile - Chrome.lnk")
print(shortcut.Targetpath)
But it doesnt reading the --profile-directory parameter.

[Image: dy7DVSs.png]

Any help would be appreciated.

Thanks
Still looking for a solution, Any help would be appreciated