Click here to Skip to main content
15,908,274 members
Home / Discussions / C#
   

C#

 
QuestionGenreics Pin
Patrik.karlin9-Jul-09 0:43
Patrik.karlin9-Jul-09 0:43 
QuestionDriveInfo Class Help Required. Pin
Siddhartha S.9-Jul-09 0:33
Siddhartha S.9-Jul-09 0:33 
AnswerRe: DriveInfo Class Help Required. Pin
Christian Graus9-Jul-09 2:17
protectorChristian Graus9-Jul-09 2:17 
GeneralRe: DriveInfo Class Help Required. Pin
Siddhartha S.9-Jul-09 2:32
Siddhartha S.9-Jul-09 2:32 
GeneralRe: DriveInfo Class Help Required. Pin
Christian Graus9-Jul-09 2:37
protectorChristian Graus9-Jul-09 2:37 
GeneralRe: DriveInfo Class Help Required. Pin
Siddhartha S.9-Jul-09 3:07
Siddhartha S.9-Jul-09 3:07 
QuestionNew to programming, lost ability to view images in VMC add-on Pin
James Alton8-Jul-09 23:58
James Alton8-Jul-09 23:58 
QuestionGetting the directory that a .lnk shortcut points to Pin
Douglas Kirk8-Jul-09 23:57
Douglas Kirk8-Jul-09 23:57 
I am creating a file list of all files in a directory, searching each subdirectory and so on.

When I come to a windows shortcut file such as "MUSIC.LNK" I would like to scan and search the
directory that it points to as well.

DirectoryInfo directory = new DirectoryInfo(PSP_Directory[Display, i] + "\\");

FileInfo[] theFiles = directory.GetFiles();
DirectoryInfo[] theSubDirectories = directory.GetDirectories();

foreach (FileInfo theFile in theFiles) <<< The link file MUSIC.LNK can be seen here
{
if (string.Equals(theFile.Name.Split('.')[1].ToUpper(), "LNK"))
{

How do I get the directory infomation from it so that I can redirect my scanning to that directory as well.

Thank you in advance.


Douglas
AnswerRe: Getting the directory that a .lnk shortcut points to Pin
DaveyM699-Jul-09 0:30
professionalDaveyM699-Jul-09 0:30 
AnswerRe: Getting the directory that a .lnk shortcut points to Pin
DaveyM699-Jul-09 0:53
professionalDaveyM699-Jul-09 0:53 
GeneralRe: Getting the directory that a .lnk shortcut points to Pin
Douglas Kirk9-Jul-09 21:46
Douglas Kirk9-Jul-09 21:46 
QuestionNumeric Format problem Pin
ansriharsha8-Jul-09 23:37
ansriharsha8-Jul-09 23:37 
AnswerRe: Numeric Format problem Pin
Pete O'Hanlon8-Jul-09 23:43
mvePete O'Hanlon8-Jul-09 23:43 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 1:29
ansriharsha9-Jul-09 1:29 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 1:47
professionalEddy Vluggen9-Jul-09 1:47 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 2:40
ansriharsha9-Jul-09 2:40 
QuestionRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 2:51
professionalEddy Vluggen9-Jul-09 2:51 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 3:47
ansriharsha9-Jul-09 3:47 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 3:57
professionalEddy Vluggen9-Jul-09 3:57 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 4:33
ansriharsha9-Jul-09 4:33 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 6:33
professionalEddy Vluggen9-Jul-09 6:33 
AnswerRe: Numeric Format problem Pin
ansriharsha17-Jul-09 0:50
ansriharsha17-Jul-09 0:50 
QuestionPlease Help... Pin
mjawadkhatri8-Jul-09 23:00
mjawadkhatri8-Jul-09 23:00 
AnswerRe: Please Help... Pin
Pete O'Hanlon8-Jul-09 23:16
mvePete O'Hanlon8-Jul-09 23:16 
GeneralRe: Please Help... Pin
Luc Pattyn9-Jul-09 9:42
sitebuilderLuc Pattyn9-Jul-09 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.