Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Directory Search moving through shortcuts

Status
Not open for further replies.

TalosBlack

Programmer
Jan 6, 2004
33
US
I am writing a program that explores a file tree it moves through the directories and files and takes certain information from the files to compare it to another file. I have figured out how to use the _findfirst and _findnext commands to move through a directory. The problem is i need to be able to move to where shortcuts point. In other words if there is a shortcut in the directory i'm searching i need to be able to move to the shortcuts destination. (providing it's a folder shortcut i'm not concerned for doing anything with shortcuts to files such as exes right now.) Right now when i come across a new folder which i ID through it's attributes i parse the folders name onto the end of my path using the stngcat commmand. I am working with ms visual c++ 4.0. Any help would be great thanks.

John
 
Shortcuts are actually files (with a .lnk) extension, as you probably know.

It would seem to me that you need to open these files and find where they point (any at what sort of thing they point at). I don't know the format of these files' contents but I'm sure someong else will or you'll be able to discover this information on the Microsoft web site.

________________________________________
[hippy]Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.
 
And see the "C++ Displaying ShortCut Target" thread in this forum: more info there.

________________________________________
[hippy]Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top