473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

read .lnk files, modify the data and rewrite the file

Years ago I wrote a program to read .lnk files, modify the data and rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks
Jan 22 '07 #1
7 5634
In article <#q*************@TK2MSFTNGP06.phx.gbl>,
Frank <fr***@a-znet.comwrote:
>Years ago I wrote a program to read .lnk files, modify the data and rewrite
the file.
I can't find it nor can I find the API calls I used.
If you're using C/C++, why not use the quite-standard and portable
fopen/fread/fwrite/fclose functions? If the files are text, then you
can use fopen/fgets/fprintf/fclose.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Jan 22 '07 #2
They are not text and I don't know the structure
thanks

"Nathan Mates" <na****@visi.comwrote in message
news:12*************@corp.supernews.com...
In article <#q*************@TK2MSFTNGP06.phx.gbl>,
Frank <fr***@a-znet.comwrote:
>>Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.
I can't find it nor can I find the API calls I used.

If you're using C/C++, why not use the quite-standard and portable
fopen/fread/fwrite/fclose functions? If the files are text, then you
can use fopen/fgets/fprintf/fclose.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein

Jan 22 '07 #3
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks


Jan 23 '07 #4
I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks



Jan 23 '07 #5
You must use COM to manage IShellLink (using for that CLSID_ShellLink und IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message news:uO**************@TK2MSFTNGP04.phx.gbl...
I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks



Jan 24 '07 #6
thanks for the info
"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:eI****************@TK2MSFTNGP04.phx.gbl...
You must use COM to manage IShellLink (using for that CLSID_ShellLink und
IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message
news:uO**************@TK2MSFTNGP04.phx.gbl...
>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks




Jan 25 '07 #7
Can anyone say something about .pif files.

They appear to be managed with the same API calls

I have some old ones that are less than 300 bytes long.

If I use a program I found that reads .LNK files it reads the .pif file ok
except it misses the command line.

If I use explorer to show the properties, when I close the properties the
file it is recreated as over 2000 bytes long. I think the original was 8-bit
character strings and the new on still contains that but adds 16-bit
character strings.

Does anyone know anything about any of this??
THANKS

" Frank" <fr***@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
thanks for the info
"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:eI****************@TK2MSFTNGP04.phx.gbl...
>You must use COM to manage IShellLink (using for that CLSID_ShellLink und
IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message
news:uO**************@TK2MSFTNGP04.phx.gbl...
>>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Years ago I wrote a program to read .lnk files, modify the data and
rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?
thanks




Jan 25 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Batista, Facundo | last post by:
People: I'm trying to convert my father from using COBOL to Python, :) One difficult thing we stuck into is how to read, from python, files written with COBOL. Do you know a module that...
1
by: Magix | last post by:
Hi, I have these string data: str_data1, str_data2, str_data3, which capture some value after a routine process A. Then I would like to write (append) these 3 string values into a text file each...
3
by: Testguy | last post by:
Hi, I have been reading various messages in this group, and could not find an answer regarding what I am trying to do. At least, I could not find an easy answer. I am trying to figure out how...
0
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
1
by: Jose Reckoner | last post by:
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks!
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
2
by: RyanS09 | last post by:
Hi- I have read many posts with specific applications of reading in text files into arrays, however I have not been able to successfully modify any for my application. I want to take a text file...
8
by: theCancerus | last post by:
Hi All, I am not sure if this is the right place to ask this question but i am very sure you may have faced this problem, i have already found some post related to this but not the answer i am...
4
Mighty Mackinac
by: Mighty Mackinac | last post by:
Hi all, I am trying to write a program that can encrypt and decrypt files using an extremely basic encryption scheme. Here's a list of what I still need: 1. Read scheme from file to be applied to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.