473,750 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5650
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.co mwrote in message
news:12******** *****@corp.supe rnews.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******** *******@TK2MSFT NGP06.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.dewro te in message
news:uu******** ******@TK2MSFTN GP05.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******** *******@TK2MSFT NGP06.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******** ******@TK2MSFTN GP04.phx.gbl...
I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewro te in message
news:uu******** ******@TK2MSFTN GP05.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******** *******@TK2MSFT NGP06.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*********@ho tmail.comwrote in message
news:eI******** ********@TK2MSF TNGP04.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******** ******@TK2MSFTN GP04.phx.gbl...
>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewro te in message
news:uu******* *******@TK2MSFT NGP05.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******** *******@TK2MSFT NGP06.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******** ********@TK2MSF TNGP05.phx.gbl. ..
thanks for the info
"Cholo Lennon" <ch*********@ho tmail.comwrote in message
news:eI******** ********@TK2MSF TNGP04.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******* *******@TK2MSFT NGP04.phx.gbl.. .
>>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewro te in message
news:uu****** ********@TK2MSF TNGP05.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******* ********@TK2MSF TNGP06.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
14889
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 allows me to do that? It should avoid us the work to write a COBOL program that open the COBOL
1
4308
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 time after routine process A, the text file is named "mytext.dat" in following format with "#####" as separator. The maximum entries of them is 5. When reaching the fifth entry, it will delete the very first entry.
3
35007
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 to read and XML file and put the data in fields in a VB application, and also how to write the information to an XML file (either to a new file or modifying an existing file.
0
2394
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 D 'Delete
1
3999
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
2509
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com http://www.livingcosmos.org/Members/sundevil/python/articles/a-comparison-of-python-class-objects-and-init-files-for-program-configuration/view
2
5519
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 filled with a tab delimited list of 10 columns (floats) and read it into a 2D array. The length of the columns are all the same, however this will be variable from text file to text file. Any help (starter code or where to read) would be much...
8
6392
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 looking for. My problem is that i have to upload images and store them. I am using filesystem for that. setup is something like this, their will be items/groups/user each can
4
4179
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 input file 2. Modify input to match the scheme 3. Write output to new file My first actual question is what is the code to read two different sets of data from one file e.i. A (3,1) on the first line, next line is B (4,6), etc. I need to...
0
8838
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.