Click to See Complete Forum and Search --> : How to save comments with shortcut files?


jigarshah_33
September 2nd, 2004, 01:10 AM
Hello everyone,
I am writing an application which provides to save your own favorites or bookmarks. For that I am creating shortcuts using system.io class. But I need to save extra comments with this shortcuts. In system.io I couldn't find any attributes to save extra details with shortcuts or files.

You can think this comments as tag with vb controls.

Can anyone help me for that?

Thanks in advance.

Jigar Shah

MRutledge
September 2nd, 2004, 05:09 PM
My guess would be that you would need to look at the structure of a short cut file to first see if it supports comments. If it does support comments, then by reading about the structure you will then know how and where to put those comments in the file structure itself. If it does not support comments then you might consider making your own file type.

jigarshah_33
September 3rd, 2004, 04:29 AM
Hi MRutledge,
Thanks to guide me. I have checked that shortcut can store comments insided in it. But i cannot find anything in system.io's fileinfo or fileclass to perform that thing.
Can u guide me for that?

Thanks

Jigar Shah







My guess would be that you would need to look at the structure of a short cut file to first see if it supports comments. If it does support comments, then by reading about the structure you will then know how and where to put those comments in the file structure itself. If it does not support comments then you might consider making your own file type.

MRutledge
September 3rd, 2004, 10:17 AM
Well if you know the file strucutre then you can use system.file.io to write the proper bytes to the file using the write function.