C
C#•2y ago
Pillow

.lnk parsing

This tool https://github.com/securifybv/ShellLink seems to be decent for parsing/modifying/creating .lnk files, but I can't find/know how you use it, anyone used it/know how to use it? (Or any other options)
18 Replies
mtreit
mtreit•2y ago
The README shows a number of examples...
Pillow
Pillow•2y ago
it does, but it doesn't show how to import (or whatever it's called in c#, 🤷) the library
mtreit
mtreit•2y ago
Clone the code and add a ProjectReference to Securify.ShellLink.csproj, probably
mtreit
mtreit•2y ago
Sounds like you need to clone this as well: https://github.com/securifybv/PropertyStore
GitHub
GitHub - securifybv/PropertyStore: .NET Class Library for processin...
.NET Class Library for processing Serialized Property Stores - GitHub - securifybv/PropertyStore: .NET Class Library for processing Serialized Property Stores
Pillow
Pillow•2y ago
where do i clone it to? my project's folder?
mtreit
mtreit•2y ago
As a peer folder of your project that you can then add a ProjectReference to is probably fine.
Pillow
Pillow•2y ago
so anywhere is fine then point to that location?
mtreit
mtreit•2y ago
Sure
Pillow
Pillow•2y ago
alright do i need to add a projectreference to propertystore too?
mtreit
mtreit•2y ago
Looks like the ShellLink project pulls it in by PackageReference so no. Oh, looks like ShellLink itself is on NuGet. Since the github repo didn't have a link to the NuGet package that I could see I assumed it wasn't. You could just pull it in yourself via a PackageReference from NuGet instead of cloning the code yourself.
mtreit
mtreit•2y ago
securifybv.ShellLink 0.1.0
A .NET Class Library for processing ShellLink (LNK) files
Pillow
Pillow•2y ago
thanks, appreciate you helping :p (lemme try compile it)
Pillow
Pillow•2y ago
Pillow
Pillow•2y ago
it gets a couple errors and i'm not sure why since it's in the csproj (i used the nuget) i used the dotnet CLI if it makes a difference tried vs nuget menu and nope
Pillow
Pillow•2y ago
!!!
Pillow
Pillow•2y ago
it works! tysm also what did that bot do that for
mtreit
mtreit•2y ago
Messages that start with a ! are considered bot commands I think
Pillow
Pillow•2y ago
ohh makes sense