C
C#•3y 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•3y ago
The README shows a number of examples...
Pillow
PillowOP•3y ago
it does, but it doesn't show how to import (or whatever it's called in c#, 🤷) the library
mtreit
mtreit•3y ago
Clone the code and add a ProjectReference to Securify.ShellLink.csproj, probably
mtreit
mtreit•3y 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
PillowOP•3y ago
where do i clone it to? my project's folder?
mtreit
mtreit•3y ago
As a peer folder of your project that you can then add a ProjectReference to is probably fine.
Pillow
PillowOP•3y ago
so anywhere is fine then point to that location?
mtreit
mtreit•3y ago
Sure
Pillow
PillowOP•3y ago
alright do i need to add a projectreference to propertystore too?
mtreit
mtreit•3y 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•3y ago
securifybv.ShellLink 0.1.0
A .NET Class Library for processing ShellLink (LNK) files
Pillow
PillowOP•3y ago
thanks, appreciate you helping :p (lemme try compile it)
Pillow
PillowOP•3y ago
Pillow
PillowOP•3y 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
PillowOP•3y ago
!!!
Pillow
PillowOP•3y ago
it works! tysm also what did that bot do that for
mtreit
mtreit•3y ago
Messages that start with a ! are considered bot commands I think
Pillow
PillowOP•3y ago
ohh makes sense
Want results from more Discord servers?
Add your server